LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to generate a log in syslog (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-generate-a-log-in-syslog-830798/)

PlatinumX 09-07-2010 10:59 AM

How to generate a log in syslog
 
Hey all,

I am configuring syslog-ng on my server.
I suspect something to be wrong.

Is there a tool I can use in the shell to generate a log? So I can check that the log appear in the syslog file.

Thanks

druuna 09-07-2010 11:02 AM

Hi,

logger can be used to create system log entries.

Example: logger -p local0.notice -t TAG some message

See the man page for some extra info.

Hope this helps.

PlatinumX 09-07-2010 01:05 PM

Thanks

druuna 09-07-2010 01:12 PM

You're welcome :)


All times are GMT -5. The time now is 06:35 AM.