Add_workflow_for_techpubs | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Panel | ||||
---|---|---|---|---|
In this section:
|
Multiexcerpt | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||
Use the Event Log object to create, configure, disable and enable system and subsystem level log files to capture system, security, debug, packet, trace and accounting events.
|
|
|
|
|
|
|
|
|
For each event type, an event class (subsystem) and severity threshold can be configured. Event classes include:
The ROLLFILE facility provides a means of closing the active log file and opening a new one with an incremented (name) suffix. This facilitates real-time analysis of system events by performing the analysis on closed, rather than opened and growing, files. |
The Event Log object allows you to create event log filters to capture debug, security, system, trace, and accounting events using following parameters:
Include Page | ||||
---|---|---|---|---|
|
Multiexcerpt include | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Multiexcerpt include | ||||
---|---|---|---|---|
|
Code Block | ||
---|---|---|
| ||
% set oam eventLog filterAdmin <node name> <event_type: audit | debug | memusage | security | system | trace> <event_class: audit | callproc | directory | netmgmt | policy | resmgmt | routing | security | signaling | sysmgmt | trace> level <info | major | minor | noevents> state <off | on> |
Multiexcerpt | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||
|
Anchor | ||||
---|---|---|---|---|
|
Code Block | ||
---|---|---|
| ||
% request oam eventLog filterStatus <node name> <event_type: audit | debug | memusage | security | system | trace> <event_class: audit | callproc | directory | netmgmt | policy | resmgmt | routing | security | signaling | sysmgmt | trace> resetStats |
Multiexcerpt | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||
|
Anchor | ||||
---|---|---|---|---|
|
The active and standby SBC are designed to turn off INFO level logging if the system becomes congested. The "request oam eventLog infoLevelLoggingEnable clearInfoLevelLoggingDisabled
" command is used to re-enable INFO level logging once it is disabled. See sonusCpEventLogInfoLevelLoggingDisabledNotfication - MAJOR for associated trap details.
To view INFO LEVEL LOGGING DISABLED state, run the following command.
Code Block | ||||
---|---|---|---|---|
| ||||
> show table oam eventLog typeStatus INFO TOTAL LEVEL CURRENT FILE FILE TOTAL FILE FILES NEXT LOG LOGGING TYPE FILE RECORDS BYTES FILES BYTES DROPPED ROLLOVER DESTINATION LAST FILE DROP DISABLED ------------------------------------------------------------------------------------------------------------------------------ system 1000005.SYS 216 31756 32 1032744 0 0 localDisk 0000-00-00T00:00:00+00:00 false debug 1000014.DBG 1601 188964 32 27489838 0 0 localDisk 0000-00-00T00:00:00+00:00 false trace 1000005.TRC 0 128 32 5224 0 0 localDisk 0000-00-00T00:00:00+00:00 false acct 1000085.ACT 1 202 32 7592 0 0 localDisk 0000-00-00T00:00:00+00:00 false security 1000005.SEC 7 1047 32 23610 0 0 localDisk 0000-00-00T00:00:00+00:00 false audit 1000005.AUD 1002 186238 32 4267027 0 0 localDisk 0000-00-00T00:00:00+00:00 false packet 1000005.PKT 0 128 32 872 0 0 localDisk 0000-00-00T00:00:00+00:00 false |
Code Block | ||
---|---|---|
| ||
% request oam eventLog infoLevelLoggingEnable clearInfoLevelLoggingDisabled |
Multiexcerpt | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
Anchor | ||||
---|---|---|---|---|
|
Multiexcerpt include | ||||
---|---|---|---|---|
|
Code Block |
---|
% set oam eventLog process memusage state <enable | disable> level <summary | detailed> interval <0...140> |
Multiexcerpt | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||
|
Anchor | ||||
---|---|---|---|---|
|
Code Block | ||
---|---|---|
| ||
% set oam eventLog platformAuditLogs state <disabled | enabled> |
Multiexcerpt | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
|
Anchor | ||||
---|---|---|---|---|
|
Use Rsyslog to configure a remote server IP address, port, and protocol type to push platform logs of administrative, privileged, and security actions to a remote server.
When platformRsyslog
is enabled, the /etc/
rsyslog.conf
file is configured to send the configured platform logs to the remote syslog server. The remote server's /etc/rsyslog.conf
file must match the configuration of the SBC to receive platform logs. The SBC automatically adds an Access Control List (ACL) rule to send the audit logs through the application layer to the remote server.
Info |
---|
The following logs will not be supported: Monit, Mail, Printer, dpkg and the /var/log/messages file. |
Info | ||
---|---|---|
| ||
The ACL rule is removed automatically from the default ACL rules when platformRsyslog is disabled. |
Info | ||
---|---|---|
| ||
For a High Availability (HA) pair, the |
To create a new Server configuration table:
Code Block |
---|
set oam eventLog platformRsyslog servers server<no> remoteHost<host_ip> protocolType<protocol> port <port> |
Info | ||
---|---|---|
| ||
Ensure the Platform Rsyslog |
Caption | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
|
To enable/disable the Rsyslog service for all the Linux Logs:
Code Block |
---|
set oam eventLog platformRsyslog syslogState <disabled | enabled> |
Caption | ||||
---|---|---|---|---|
| ||||
|
Anchor | ||||
---|---|---|---|---|
|
Mandatory parameters required to configure an Event log subsystem event type:
Code Block | ||
---|---|---|
| ||
% set oam eventLog subsystemAdmin <system_name> <subsys_ID> |
Non-mandatory parameters to configure an Event log subsystem event type:
Code Block | ||
---|---|---|
| ||
% set oam eventLog subsystemAdmin <system_name> <subsys_ID> infoLogState <disabled | enabled> maxEventID <0-4.294967295E9> minEventID <0-4.294967295E9> |
Multiexcerpt | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
|
Caption | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Anchor | ||||
---|---|---|---|---|
|
Info | ||
---|---|---|
| ||
The |
Info | ||
---|---|---|
| ||
To guard against overlogging, the SBC logs up to 4,294,976,295 messages per second in the event logs (configurable with |
The following syntax applies to the set oam eventLog typeAdmin command:
Code Block | ||
---|---|---|
| ||
% set oam eventLog typeAdmin <acct | audit | debug | memusage | packet | security | system | trace> compressionSupport <both | none | only> compressionDaysToKeep <1 .. 7> compressionCleanupDirectorydiskThrottleLimit <0-4294976295> eventLogValidation fileCount <1-2048> fileSize <256-65535> fileWriteMode <default | optimize> filterLevel <info> messageQueueSize <2-100> renameOpenFiles <disabled | enabled> rolloverAction <start | stop> rolloverInterval <0-31536000> rolloverStartTime <time> rolloverType <repetitive | nonrepetitive> saveTo <none | disk> servers <syslogRemoteHost | syslogRemotePort | syslogRemoteProtocol> syslogState <disabled | enabled> |
Note |
---|
Only the Administrator can execute the above command using the % set oam eventLog typeAdmin audit... % set oam eventLog typeAdmin security... |
The following syntax applies to the request oam eventLog typeAdmin
command:
Code Block | ||
---|---|---|
| ||
% request oam eventLog typeAdmin <acct | audit | debug | memusage | packet | security | system | trace> rolloverLogNow % request oam filterStatus <card name> <audit | debug | memusage | security | system | trace> <audit | callproc | directory | netmgmt | policy | resmgmt | routing | security | signaling | sysmgmt | trace |
Note |
---|
Only the Administrator can execute the following commands using the "audit" and "security" attributes: % request oam eventLog typeAdmin audit rolloverLogNow % request oam eventLog typeAdmin security rolloverLogNow % request oam eventLog filterStatus <card name> security security resetStats |
Include Page | ||||
---|---|---|---|---|
|
Multiexcerpt | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Multiexcerpt | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
|
Hide |
---|
Note TO TECH DOCS: This content is hidden based on Christopher John's comments until there is bandwidth to document correct examples. |
Command ExamplesTo view typeAdmin status from the system-level prompt:
|
To configure event log type “packet” by setting file count to “1”, maximum file size to 256 KB, roll-over interval to 2 seconds, and then enabling the event log but disabling the logging of events to syslog:
|
To send the command to request an immediate roll-over:
|
To display typeAdmin event log details. It has been shortened for brevity.
|
|
|
|
|