Linux operating systems

Logging events to the Linux system log

The Linux system log displays enabled events that are sent to the system log.

About this task

The information that is displayed includes the following items:

  • The date and time that the Linux system log received the event
  • The category of the event
  • The event number
  • The user security identifier
  • The name of the computer that logged the event
Tip: To learn about other ways to log events to receivers, see Logging Tivoli Storage Manager events to receivers.

Procedure

Enable logging to the Linux system log by using one of the following methods:
Event logging setup Procedure
Single-server events
To enable single-server events for logging to the system log, you can issue the BEGIN EVENTLOGGING and ENABLE EVENTS commands. For example:
begin eventlogging syslog
enable events syslog all
An example of the message that appears in the system log is as follows:
timestamp host_name process_id: server_name:
event_number event_text
Client-to-server events
To enable client-to-server events for logging to the system log, you can issue the BEGIN EVENTLOGGING and ENABLE EVENTS commands. For example:
begin eventlogging syslog
enable events syslog all NODENAME=nodename
An example of the message that appears in the system log is as follows:
timestamp host_name process_id: node_name>server_name:
event_number event_text
Server-to-server events

To enable server-to-server events for logging to the system log, you can issue the DEFINE EVENTSERVER, BEGIN EVENTLOGGING, and ENABLE EVENTS commands. For example, to set up logging between server A and server B, issue the following commands:

Server A
define eventserver serverb
begin eventlogging eventserver
enable events eventserver all
Server B
begin eventlogging syslog
enable events syslog all servername=servera 
An example of the message that appears in the system log is as follows:
timestamp host_name process_id: servera>serverb:
event_number event_text