Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 7 down vote accepted

have a look at the logger command.

e.g.

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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