I use logcheck to monitor log files, but instead of receiving reports by email I want to send them outside with bash script.
So I've used -o:
sudo -u logcheck /usr/sbin/logcheck -o 2>&1 | myscript with curl
but i receive the following error:
Error: Could not run logtail or save output.
After some test, I've seen that logcheck user doesn't have permission to read log files also if it is part of adm group.
Of course, logcheck can't be run as root user or by user with root privileges.
Someone use this package and can help me?
Centos 7 with logcheck by epel.