How to find out the [ID msgid facility.priority] when messages are displayed on the console
Last updated on JULY 29, 2016
Applies to:Solaris Operating System - Version 10 3/05 and later
Information in this document applies to any platform.
If message ID generation is enabled (see log(7D)), each message will be preceded by an identifier in the following format: [ID msgid facility.priority]. msgid is the message's numeric identifier described in msgid(1M). facility and priority are described in syslog.conf(4). Message ID generation is enabled by default.
[ID 123456 kern.notice] is an example of an identifier when message ID generation is enabled.
In an effort to reduce visual clutter, message IDs are not displayed when writing to the console; message IDs are only written to the log file.
The goal of this document is to determine the message IDs of messages displayed on the console in order to modify /etc/syslog.conf to redirect them.
Let's say we have a bunch of messages like this one that appears on the console regularly and we would like to send them to a log file:
Feb 2 16:16:56 aixvm15 root: test_foo
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms