11

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

Rich
  • 1,343
  • 7
  • 28
  • 39

1 Answers1

25

have a look at the logger command.

e.g.

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

user9517
  • 115,471
  • 20
  • 215
  • 297