A SERVICE OF

logo

Chapter 11 265
Utilities
Event processing
The -c option displays event information output on the console as well.
If the event severity is high enough, this happens automatically.
event_logger displays any events that have a severity greater than
the warning level.
The following two examples show how log_event can be used:
cat data_file | log_event 0x86340001 -n 0
This example puts an event in the event log with the event code of
0x86340001. The data will be the information contained in the file
data_file.
echo “This is a test event” | log_event -n 0
This example puts the message “This is a test event” in the event log
with the default event code from log_event.