Live Data Collecting Logs
The logs that the Live Data services generate are available through the same tools as the Unified Intelligence Center logs.
For example, you can use the file get CLI command to collect all the Live Data logs:
file get activelog
livedata/logs/*/*
You can also use the Real Time Monitoring Tool (RTMT) to collect and view logs and traces of the Live Data services.
Live Data Log Levels
Use the command-line interface to set trace level settings for Live Data services. There is no method in OAMP to set the log levels for the Live Data components.
-
Communications - logs messages related to connections
-
DataProcessing - logs messages related to the processing of messages
-
Database - logs messages specific to the database
-
Event-store - logs messages specific to the storage of agent call-log and state-log events
Note
You cannot apply a tracemask to the event-store subsystem.
Setting the loglevel
Required Minimum Privilege Level: Advanced
Command Syntax
set live-data trace subsystem loglevel value
- subsystem
- communications, dataprocessing, event-store or database
- value
- The loglevel for the specified subsystem:
- DEBUG
- INFO
- NOTICE
- WARN
- ERROR
- CRITICAL
- ALERT
- EMERGENCY
Note
Only the following log levels are applicable to the event-store subsystem: DEBUG, INFO, WARN, and ERROR.
Example:
admin:set
live-data trace dataprocessing loglevel DEBUG
Setting the tracemask
Required Minimum Privilege Level: Advanced
You can set detailed log levels by enabling trace flags, which allows debug statements to appear in the logs. You can control debug tracing for specific functionalities by specifying a TRACE flag name within specific subsystem components. See Infrastructure Trace Definitions in the Administration Console User Guide for Cisco Unified Intelligence Center at https://www.cisco.com/c/en/us/support/customer-collaboration/unified-intelligence-center/products-maintenance-guides-list.html.
Command Syntax
set live-data trace subsystem tracemask value
- subsystem
- communications, dataprocessing, or database
- value
- For each of
the three subsystems specify one of several tracemasks:
dataprocessing - TIP_APPL_MESSAGE_TRACEMASK
- CAMEL_JMS_TRACEMASK
- STORM_SPOUT_TRACEMASK
- TIP_PROTOCOL_TRACEMASK
- FAILOVER_HB_TRACEMASK
database - DB_UCCE_AW_TRACEMASK
communications - JMS_COMMUNICATION_TRACEMASK
- FAILOVER_TOS_TRACEMASK
To set multiple tracemasks, separate them with a space.
Example:
admin: set
live-data trace dataprocessing tracemask TIP_APPL_MESSAGE_TRACEMASK
CAMEL_JMS_TRACEMASK
To clear all tracemasks, use the tracemask command without parameters, for example:
set live-data trace
dataprocessing tracemask
You can list the trace masks available for each subsystem using the command help option, for example:
set live-data trace
dataprocessing tracemask ?
Show the loglevel
Required Minimum Privilege Level: Ordinary
To display the
current loglevel or tracemask, use the
show
live-data trace
command, for example:
admin:show live-data trace
dataprocessing loglevel
admin:show live-data trace
dataprocessing tracemask
Set Live-Data Trace Agent
Required Minimum Privilege Level: Advanced
Use this command to enable detailed tracing for specific agents.
Note |
This command requires in-depth system knowledge. Use detailed tracing only for advanced troubleshooting. Enabling detailed tracing adds many messages to the log files. The system may quickly exceed limits on the size and number of log files, causing the oldest log files to be overwritten. As a result, running detailed tracing shortens the history covered by the log files. |
Command Syntax
set live-data trace agent AgentSkillTargetIDs
- AgentSkillTargetIDs
- The AgentSkillTargetIDs of the agents you want to trace. Separate IDs with a space. You can only have detailed tracing enabled for three agents simultaneously.
Note |
Running this command overwrites any previous setting. |
Example:
admin:set
live-data trace agent 5037 6000
Output:
Enable
detailed traces for agent(s) with the following id(s): 5037 6000
Show Agents Currently Set
Required Minimum Privilege Level: Ordinary
This command shows the IDs of the agents that have detailed trace turned on.
show live-data trace agent
No parameters are required.
Example:
admin:show
live-data trace agent
Output:
Detailed
traces are turned on for the agent(s) with the following id(s): 5037
Unset Trace
Required Minimum Privilege Level: Advanced
This command turns off detailed traces for all agents.
unset live-data trace agent
No parameters are required.
Example:
admin:unset live-data trace agent
Output:
Disable
detailed traces for all agent(s)
Help Command
unset live-data trace agent ?
Example:
admin:set
live-data trace agent ?
Output:
This
command is used to set the trace level for Agents.
Set Live-Data Trace Skill-Group
Required Minimum Privilege Level: Advanced
Use this command to enable detailed tracing for specific skill-groups.
Note |
This command requires in-depth system knowledge. Use detailed tracing only for advanced troubleshooting. Enabling detailed tracing for a skill-group with many agents, for example, more than one hundred, adds a large number of messages to the log files. The system may quickly exceed limits on the size and number of log files, causing the oldest log files to be overwritten. As a result, running detailed tracing shortens the history covered by the log files. |
Command Syntax
set live-data trace skill-group Skill-GroupSkillTargetIDs
- Skill-GroupSkillTargetIDs
- The Skill-GroupSkillTargetIDs of the skill-groups you want to trace. Separate IDs with a space. You can only have detailed tracing enabled for 3 skill-groups simultaneously.
Note |
Running this command overwrites any previous setting. |
Example:
set
live-data trace skill-group 5037 6000
Output:
Enable
detailed traces for skill-group(s) with the following id(s): 5037 6000
Show Skill-Groups Currently Set
Required Minimum Privilege Level: Ordinary
show live-data trace skill-group
No parameters are required.
Example:
admin:show
live-data trace skill-group
Output: Detailed traces are
turned on for the skill-group(s) with the following id(s): 11962
Unset Trace
Required Minimum Privilege Level: Advanced
This command turns off detailed tracing for all skill-groups.
unset live-data trace skill-group
No parameters are required.
Example:
admin:unset
live-data trace skill-group
Output:
Disable
detailed traces for all skill-group(s)
Help Command
unset live-data trace skill-group ?
Example:
admin:set
live-data trace skill-group ?
Output:
This
command is used to set the trace level for skill-groups.
Set Live-Data Trace Precision-Queue
Required Minimum Privilege Level: Advanced
Use this command to enable tracing for specific precision-queues.
Note |
This command requires in-depth system knowledge. Use detailed tracing only for advanced troubleshooting. Enabling detailed tracing for a precision-queue adds many messages to the log files. The system may quickly exceed limits on the size and number of log files, causing the oldest log files to be overwritten. As a result, running detailed tracing shortens the history covered by the log files. |
Command Syntax
set live-data trace precision-queue Precision-QueueIDs
- Precision-QueueIDs
- The Precision-QueueIDs of the precision-queues you want to trace. Separate IDs with a space. You can only have detailed tracing enabled for 3 precision-queues simultaneously.
Note |
Running this command overwrites any previous setting. |
Example:
admin:set
live-data trace precision-queue 5037 6000
Output:
Enable
detailed traces for precision-queue(s) with the following id(s): 5037 6000
Show Precision-Queues Currently Set
Required Minimum Privilege Level: Ordinary
Show the IDs of the precision-queues that have detailed trace turned on.
show live-data trace precision-queue
No parameters are required.
Example:
admin:show
live-data trace precision-queue
Output:
Detailed
traces are turned on for the precision-queue(s) with the following id(s):
5000
Unset Trace
Required Minimum Privilege Level: Advanced
This command turns off detailed traces for all precision-queues.
unset live-data trace precision-queue
No parameters are required.
Example:
admin:unset
live-data trace precision-queue
Output:
Disable
detailed traces for all precision-queue(s)
Help Command
unset live-data trace precision-queue ?
Example:
admin:set
live-data trace precision-queue ?
Output:
This
command is used to set the trace level for precision-queues.