Logging overview
Itential Platform captures operational events, errors, and diagnostic information in logs. Use logs to monitor system behavior, troubleshoot issues, and track automation workflows.
Log formats
Platform supports two output formats:
Structured JSON (Platform 2023.2 and 6.2+)
- Separate, queryable fields
- Automated parsing by log aggregation tools
- Better security and field-based searches
- Recommended for all new deployments
Standard (all versions)
- Backward compatibility
- Existing parsers
- Gradual migration from legacy systems
Use structured JSON logs for new deployments. They provide better security, easier parsing, and enable field-based searches in log aggregation tools like Splunk, Datadog, and Elasticsearch.
Log structure
Every log entry contains these fields:
Structured JSON format
Structured logs separate data into distinct, queryable fields:
Standard format
Standard logs embed data within message strings:
The legacy_args array appears when multi-argument log calls convert to structured JSON format.
Log levels
Each log level includes all higher-severity levels. Setting log_level to warn logs system, error, and warn, but excludes info, debug, trace, and spam.
Never use debug, trace, or spam log levels in production environments. These levels generate excessive log volume and can impact performance.
Log level examples
system level
Critical platform lifecycle events:
Structured JSON:
Standard format:
error level
Unrecoverable errors preventing operations from completing:
Structured JSON:
Standard format:
warn level
Recoverable issues requiring attention but not preventing operations:
Structured JSON:
Standard format:
info level (recommended for production)
Normal operational events tracking progress of operations:
Structured JSON:
Standard format:
debug level
Detailed diagnostic information for troubleshooting:
Structured JSON:
Standard format:
When to use each log level
Production environments
Use these levels:
system- Always logged, not configurableerror- Unrecoverable failureswarn- Recoverable issues, retries, deprecationsinfo- Normal operations (recommended default)
Avoid these levels:
debug- Only during active troubleshootingtrace- Never in productionspam- Never in production
Development environments
Use these levels:
debug- Default for developmenttrace- Temporary deep debuggingspam- Temporary high-frequency event tracking
Troubleshooting
Temporarily increase verbosity:
- Set
log_leveltodebug - Reproduce the issue
- Collect logs
- Return
log_leveltoinfoorwarn
Log file locations
Default log directories:
Rotated logs use numeric suffixes:
itential-platform.log.1itential-platform.log.2- And so on
Check your log_directory configuration setting if logs don’t appear in default locations.
Log rotation
Platform automatically rotates log files when the current log reaches log_max_file_size.
Rotation process:
IAG logs
For Itential Automation Gateway (IAG) audit logs, see the IAG-specific documentation.