Hi,
I have an application log file and I am redirecting it to syslog
...| logger -p user.err
Howver, the size redirected is too arge and I am seeking a way to filter what to redirect to syslog.
any mean to do this, knowing that I do not want to decrease the log level of the app?
thank you
...| grep 'things you are interested in' | logger -p user.err
or
...| grep -v 'things you are NOT interested in' | logger -p user.err
Or a combination
...| grep 'things you are interested in' | grep -v 'specific things you are NOT interested in that would normally be included by the first grep' | logger -p user.err
Or just keep it all and have your syslog.conf set to put it all in a different file, then manage it via logadm etc to keep the size under control.