This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
is=`ps aux | grep "journalctl -f" | grep -v grep | awk '{print$2}'` | |
file=/var/log/system.log | |
msize="12400000" # Max file sieze set to 10MB | |
asize=`ls -l /var/log/system.log | awk '{print$5}'` | |
logstaship=`fleetctl list-machines -l | grep logsystem | awk '{print$2}'` | |
hostname=`hostname` | |
# Checking the size of log file |
NewerOlder