Syslog_ng send file to syslog
Nastavenie syslog kde pošle LOG súbor na vzdialený syslog server
nano /etc/syslog-ng/conf.d/conf.conf
source radius {
file("/var/log/freeradius/radius.log"
flags(no-parse)
follow_freq(1)
log_prefix("radius2: ")
);
};
destination d_radius { udp("192.168.1.1" port(514) log_fifo_size(1000)); };
filter f_radius {
not (
message("more connections to reach")
or message("pening additional connection")
or message("Opening additional connection")
or message("adding new socket command file")
or message("Closing connection")
);
};
log {
source(radius);
filter(f_radius);
destination(d_radius);
};