Watch log file and send logs to syslog
#!/bin/sh append=“”; tail -F /opt/log/audit/audit.log | sed -u -e ‘s/^M//g’ -e ‘/^$/d’ -e ‘s/ *$//g’ -e ‘s/^ *//g’ -e ‘s/ +/ /g’ย | while read… Read More »Watch log file and send logs to syslog
#!/bin/sh append=“”; tail -F /opt/log/audit/audit.log | sed -u -e ‘s/^M//g’ -e ‘/^$/d’ -e ‘s/ *$//g’ -e ‘s/^ *//g’ -e ‘s/ +/ /g’ย | while read… Read More »Watch log file and send logs to syslog