Does anyone know of a tool or a script that I could use to send messages to syslog? I'm trying to troubleshoot a syslog configuration, and I'm having trouble eliminating possibilities. What I would like to do is something like this:

./testScript -f myFacility "testing testing 123"

and it sends it to syslog on the local machine.

Thanks in advance for any suggestions.

Rich

link|improve this question

68% accept rate
feedback

1 Answer

up vote 5 down vote accepted

have a look at the logger command.

e.g.

logger -p auth.notice "Some message for the auth.log file"

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.