file() Destination Driver
The file driver is one of the most important destination drivers in syslog-ng. It allows to output messages to the specified text file, or to a set of files.
Status
How to Test
destination console{
file(/dev/stdout);
};Configuration File Used
@version: 3.31
@include "scl.conf"
source custom{
example-msg-generator( num(5) template("Random Message") );
};
destination d_file{
file("/Users/yash/Documents/test.txt" perm(0755));
};
log {
source(custom);
destination(d_file);
};Proof


Last updated