Linux find & stop processes | syslog test logger

Restart

In order to accept a new configuration, you will need to restart your syslog server:

/etc/init.d/syslog stop
/etc/init.d/syslog start

Another way to do this is to find the syslog process and send a HUP signal to it:

ps -ax |grep syslog
6743 ??   0:00.40 /usr/sbin/syslogd
kill -HUP 6743

Testing syslog

To test if syslog has been set up correctly you can log an event to syslog using the “logger“` command:

logger -t test "Here's an example log entry"

Next check your logs configured in Logentries to see if any events have been recorded.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: