Diagnose and resolve common logging problems.
Before you begin
- Administrator access to Itential Platform
- Platform version (check Admin Essentials > About)
- Understanding of log severity levels
Collect logs for support
Choose the appropriate collection method based on your needs and whether you require JSON formatting.
Method comparison
| Method | Preserves JSON | Captures all output | Single file | Best for |
|---|---|---|---|---|
| journalctl | No | Yes | Yes | Quick support requests |
| Direct file collection | Yes | No | No | JSON parsing, analysis |
Use journalctl
Collect logs using journalctl to capture all platform output in a single file.
Identify your service name:
| Platform version | Service name |
|---|---|
| 6.2 (recent) | itential-platform |
| 6.1 (early) | itential |
| 2023.2 and earlier | pronghorn |
Check running service:
systemctl status itential-platform
Collect all logs:
journalctl -u itential-platform > itential-logs-$(date +%Y%m%d).log
Collect from time range:
# Last hour
journalctl -u itential-platform --since "1 hour ago" > logs.txt
# Specific range
journalctl -u itential-platform --since "2024-11-20 10:00:00" --until "2024-11-20 15:00:00" > logs.txt
Collect log files directly
Collect log files directly from the file system to preserve JSON formatting.
# Platform 6
tar -czf itential-logs-$(date +%Y%m%d).tar.gz /var/log/itential/
# Platform 2023.2 and earlier
tar -czf pronghorn-logs-$(date +%Y%m%d).tar.gz /var/log/pronghorn/
Before sharing logs with third parties: Review logs for sensitive data from third-party systems. Itential Platform excludes AAA sensitive data but does not modify third-party payloads.
Missing log messages
If expected log messages don't appear in log files, verify your logging configuration and directory permissions.
Check log level
Each log level excludes lower-severity levels. Setting log_level to info excludes debug messages.
Platform 6:
- Navigate to Admin Essentials > Configuration > Logging
- Check
log_levelsetting
Platform 2023.2 and earlier:
- Navigate to Admin Essentials > Profiles > [your profile]
- Click Configure tab
- Select loggerProps
- Check
log_levelsetting
Enable verbose logging temporarily
Temporarily increase log verbosity to capture detailed diagnostic information.
- Set
log_leveltodebug - Save and restart Platform
- Reproduce the issue
- Return
log_leveltoinfoorwarn
Enable debug for specific adapters
Enable debug logging for individual adapters to minimize impact on overall system performance.
- Navigate to Admin Essentials > Adapters
- Select adapter
- Click Logging tab
- Set File Log level to
debug - Save and restart adapter
Check component overrides
Verify that individual components haven't overridden global logging settings.
- Navigate to Admin Essentials > Applications, Adapters, or Integrations
- Select component
- Click Logging tab
- Verify log level
- Reset to global settings if needed
- Restart adapters (applications apply immediately)
Verify log directory
Ensure the log directory exists with proper permissions for the Platform process to write logs.
Check directory exists with proper permissions:
# Platform 6
ls -ld /var/log/itential
# Platform 2023.2 and earlier
ls -ld /var/log/pronghorn
Directory should be owned by itential with 755 permissions.
Create directory if missing:
# Platform 6
sudo mkdir -p /var/log/itential
sudo chown itential:itential /var/log/itential
sudo chmod 755 /var/log/itential
# Platform 2023.2 and earlier
sudo mkdir -p /var/log/pronghorn
sudo chown itential:itential /var/log/pronghorn
sudo chmod 755 /var/log/pronghorn
Restart Platform after creating directory.
Check system journal
Check the system journal for logging initialization errors or permission issues.
journalctl -u itential-platform --since "10 minutes ago"
Look for permission problems, configuration errors, or disk space constraints.
Logs missing from expected time period
If logs from a specific time period are missing, log rotation may have deleted them before you could retrieve them.
Check rotation settings
Verify your current rotation configuration meets your retention requirements.
Platform 6:
- Navigate to Admin Essentials > Configuration > Logging
- Check
log_max_file_sizeandlog_max_filesvalues
Platform 2023.2 and earlier:
- Navigate to Admin Essentials > Profiles > [your profile]
- Click Configure tab
- Select loggerProps
- Check
log_max_file_sizeandlog_max_filesvalues
Calculate retention period
Determine how many days of logs your current settings retain:
Days of retention = (log_max_file_size × log_max_files) / estimated daily log volume
Example calculation:
log_max_file_size: 10485760 (10 MB)log_max_files: 10- Estimated daily log volume: 50 MB
Retention = (10 MB × 10) / 50 MB per day = 2 days
Adjust rotation settings
Increase retention by adjusting log_max_file_size or log_max_files before data loss occurs.
Production recommendations:
log_max_file_size:52428800(50 MB)log_max_files:50to100- This provides approximately 7-30 days of retention depending on log volume
Alternative: Reduce log verbosity instead of increasing file limits:
- Set
log_leveltoinfoorwarn - Disable
debuglogging on individual components - This extends retention without increasing disk usage
Update settings, save, and restart Platform.
Excessive log volume
If logs rotate too quickly or consume excessive disk space, reduce verbosity and adjust rotation settings.
Reduce verbosity
Production systems should use info or warn log levels. Never use trace or spam in production.
Platform 6: Admin Essentials > Configuration > Logging
Platform 2023.2 and earlier: Admin Essentials > Profiles > [your profile] > Configure > loggerProps
Set:
log_level:infoorwarnconsole_level:warnorerror
Save and restart Platform.
Note: Console logging has higher performance impact than file logging.
Adjust rotation settings
Configure rotation settings to balance disk usage with retention requirements.
Total disk usage = log_max_file_size × log_max_files
Production recommendation:
log_max_file_size:52428800(50 MB)log_max_files:50to100
Update in logging configuration, save, and restart.
Enable structured logging
Structured logging reduces log volume compared to standard format logs.
Platform 2023.2 or 6.2+ supports structured logging, which reduces log volume. See Configure logging.
Disk space full
If log files fill available disk space, archive or delete old logs and adjust rotation settings.
Check disk usage:
df -h /var/log/itential
Archive old logs:
tar -czf itential-logs-$(date +%Y%m%d).tar.gz /var/log/itential/itential-platform.log.*
mv itential-logs-*.tar.gz /backup/location/
Delete rotated logs older than .5:
rm /var/log/itential/itential-platform.log.[5-9]*
rm /var/log/itential/itential-platform.log.[1-9][0-9]*
Restart Platform after freeing space.
Reduce log_max_files in logging configuration to prevent recurrence.
Performance issues
If Platform performance decreases after changing logging settings, reduce log verbosity and check system resources.
- Check if
log_levelorconsole_levelis set todebugor more verbose - Reset to
info/warn(file) andwarn/error(console) - Check individual components for verbose logging
- Monitor system resources:
top
iostat -x 1
Parse log errors
If you encounter errors when parsing log files, verify the log format and JSON structure.
Mixed log formats
During structured logging migration, logs may contain both formats. Configure your parser to:
- Check for
messagefield (structured) - Fall back to
@messagefield (standard) - Handle
context.legacy_argsarrays
Preserve JSON formatting
journalctl doesn't preserve JSON structure. Collect logs directly to maintain formatting:
cat /var/log/itential/itential-platform.log
Validate JSON
Test JSON validity to ensure logs are properly formatted:
cat /var/log/itential/itential-platform.log | jq '.' > /dev/null
Contact support with examples and your Platform version if errors appear.