Skip to content

OS Linux

lrchma edited this page Jun 9, 2016 · 2 revisions

https://github.com/lrchma/Log-Volume-Scripts/blob/master/OS-Linux-GetSyslogVolume.sh

This script calculates the MPS for a *NIX log file using a Syslog timestamp, e.g., Jun 5 03:01:10. The script runs under bash and requires the full path and filename of the log to be analysed, e.g., /var/log/messages

[root@local ~]# ./LRGetLinuxSyslogVolume.sh /var/log/secure

File: /var/log/secure

Total Logs: 1342

Duration: 399868

MPS: 0.00335611

Clone this wiki locally