I want to log snmpd logs
by syslog-ng
.
I added below lines in syslog-ng.conf
file
filter f_snmpd { program("snmpd"); };
destination df_snmpd { file("/var/log/snmplog"); };
log {
source(s_all);
filter(f_snmpd);
destination(df_snmpd);
};
But the above code is only capturing standard output logs liek below:
Feb 4 17:21:31 snmpd[1612]: snmpd: send_trap: Failure in sendto (Network is unreachable)
But I want more logs for snmpd
.
Please tell me how to collect all the logs of snmpd daemon
through syslog-ng
?
Thanks