Exec Mode Filtering
These commands allow you to limit the amount of data contained in logs without changing global logging parameters.
Follow the examples below to filter logs via Exec mode commands.
Active Filtering
logging active [ copy runtime filters ] [ event-verbosity event_level ] [ pdu-data format ] [ pdu-verbosity pdu_level ]
Notes:
-
copy runtime filters – Copies the runtime filters and uses that copy to filter the current logging session.
-
event-verbosity event_level – Specifies the level of verboseness to use in logging of events as one of:
-
min – Displays minimal information about the event. Information includes event name, facility, event ID, severity level, date, and time.
-
concise – Displays detailed information about the event, but does not provide the event source within the system.
-
full – Displays detailed information about event, including source information, identifying where within the system the event was generated.
-
-
pdu-data format – Specifies output format for packet data units when logged as one of:
-
none – raw format (unformatted).
-
hex – hexadecimal format
-
hex-ascii – hexadecimal and ASCII similar to a main-frame dump
-
-
pdu-verbosity pdu_level – Specifies the level of verboseness to use in logging of packet data units as an integer from 1 through 5, where 5 is the most detailed.
Disable or Enable Filtering by Instance(s)
logging filter active facility facility level severity_level [ critical-info | no-critical-info ]
logging filter { disable | enable } facility facility { all | instance instance_number }
Notes:
-
active – Indicates that only active processes are to have logging options set.
-
disable – Disables logging for a specific instance or all instances. This keyword is only supported for aaamgr, hamgr and sessmgr facilities.
-
enable – Enables logging for a specific instance or all instances. This keyword is only supported for aaamgr, hamgr and sessmgr facilities. By default logging is enabled for all instances of aaamgr, hamgr and sessmgr.
-
facility facility and level severity_level – Configure the logging filter that determines which system facilities should be logged and at what levels.
-
all | instance instance_number – Specifies whether logging will be disabled or enabled for all instances or a specific instance of aaamgr, hamgr or sessmgr. Run the show session subsystem facility facility command to identify specific instance numbers.
NoteThese keywords are only supported with the disable and enable keywords.
-
level severity_level – Specifies the level of information to be logged from the following list which is ordered from highest to lowest:
-
critical - display critical events
-
error - display error events and all events with a higher severity level
-
warning - display warning events and all events with a higher severity level
-
unusual - display unusual events and all events with a higher severity level
-
info - display info events and all events with a higher severity level
-
trace - display trace events and all events with a higher severity level
-
debug - display all events
NoteThis keyword is only supported in conjunction with the active keyword.
-
-
critical-info – Specifies that events with a category attribute of critical information are to be displayed. Examples of these types of events can be seen at bootup when system processes and tasks are being initiated. This is the default setting.
no-critical-info – Specifies that events with a category attribute of critical information are not to be displayed.
NoteThese keywords are only supported in conjunction with the active keyword.
Important | To enable logging of a single instance of a facility, you must first disable all instances of the facility (logging filter disable facility facility all) and then enable logging of the specific instance (logging filter enable facility facility instance instance_number. To restore default behavior you must re-enable logging of all instances (logging filter enable facility facility all). |
You can display the instance numbers for enabled instances per facility using the Exec mode show instance-logging command.