Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question
up vote 13 down vote accepted

have a look at the logger command.


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

share|improve this answer

Your Answer


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.