Monitor timestamps of single log files
How to Monitor and Alert on the Timestamp of Single log files
[root@monitor jbowman]#
[root@monitor jbowman]#
[root@monitor jbowman]# ./logxray localhost /var/tmp/logXray autodoc /var/log/syslog 10 20 -timestamp
OK: File = [ /var/log/syslog ]. Timestamp = [ 4s ] = [ 0d, 0h, 0.066m ago ]. Thresholds: [ W=(10m) / C=(20m) ].
[root@monitor jbowman]#
[root@monitor jbowman]#
[root@monitor jbowman]#
[root@monitor jbowman]# ./nlm logxray logxray-01.logrobot.net /var/tmp/logXray autodoc /var/log/syslog 10 20 -timestamp
OK: File = [ /var/log/syslog ]. Timestamp = [ 4s ] = [ 0d, 0h, 0.066m ago ]. Thresholds: [ W=(10m) / C=(20m) ].
[root@monitor jbowman]#
[root@monitor jbowman]#
Other common log monitoring scenarios
- Show only the total count of each pattern found in log
- HTTP Log Monitoring - Frequency of status codes
- Expected Entries - Alert when missing in logs
- Pattern Exclusions - Specify a list of patterns to exclude
- Log Exclusions - Specify logs to exclude from monitoring
- Dynamic Logs - Monitoring dynamically named Log Files
- Tail Log files using Time Frames - Get precise log data
- Graph various log file metrics - Trend historical log data
- Hot Spot - Identify times with unusually high errors
- Alert based on values in specific columns in log entries
- Email Alerts - Configure log monitoring through Crontab
- Nagios Alerts - Configure log monitoring through Nagios
- Zabbix Alerts - Configure log monitoring through Zabbix
- Zenoss Alerts - Integrate LoGrobot with Zenoss
Log File Content
Scan content of log files for new occurrences (or lack thereof) of specific keywords, strings or patterns.
Log File Size
Monitor the sizes of single or multiple log files - alert if log size breaches predefined thresholds.
Log File Growth
Monitor the growth of single or multiple log files - alert when the monitored logs stop receiving new data.
Log File Timestamp
Monitor the timestamp of single or multiple logs. Alert, if logs are older than X amount of minutes or hours.