LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to log for a program such as "ping" ?? (https://www.linuxquestions.org/questions/linux-security-4/how-to-log-for-a-program-such-as-ping-141683/)

wohaolouis 02-03-2004 01:53 AM

how to log for a program such as "ping" ??
 
hi ,everybody ,
i write a program , i try to log message for it .
but i don't know how to modify /etc/syslog.conf
i have tried to append syslog.conf like that:
user.* /var/log/XXX
but it doesn't work

plz help me .

stickman 02-03-2004 02:46 PM

Did you restart syslog? Also, does your program use a valid priority level? Have you tried using the local0-7 facilities?

On a related note, you might just try modifying your iptables rules to log ICMP traffic if that's what you really want.


All times are GMT -5. The time now is 07:41 PM.