Hello,
I have a directory with sub directories and then logs. Can i please know how to write monitor stanza for this type of log monitoring ?
For instance,
/app/web/apacheweb -> main directoy
/app/web/apacheweb/apacheweb01/apache1.log -> sub directory with log
/app/web/apacheweb/apacheweb02/apache.2log -> sub directory with log
/app/web/apacheweb/apacheweb03/apache3.log -> sub directory with log
But all the sub directories have a same log format . so, i believe i can assign same sourcetype.
You can use this
[monitor:///app/web/apacheweb/apacheweb*/apache*.log]
index = yourIndexHere
sourcetype=yourSourceTypeHere