Friends,
I have a log file in my App server as below and LSF is shipping well.
/opt/jboss-eap/server/xxxxxxxxxx/log/localhost_access_log.2015-10-16.log
We have a log archiving script which archives the old files with gz extension to /localhost_access_log.2015-10-14.log.gz
How do i make LSF not to read those binary files.
I couldn't get it working as per below blog.
https://blog.vladionescu.com/excluding-from-a-path-glob/
"files": [
# An array of hashes. Each hash tells what paths to watch and
# what fields to annotate on events from those paths.
{
"paths": [ "/opt/jboss-eap/server/XXXXXX*/log/localhost_access_log*.log" ],
"fields": { "type": "accesslogs" }
}
]