Hi All,
I need to configure inputs.conf for the folder path below. Can we do it in one stanza, or do we need create two different stanzas?
The difference between the two paths is the log folder name. In some servers, it is in lower case and in some servers it is in upper case.
Folder Path:
d:\Logs\TV_Engine.log
d:\logs\TV_Engine.log
Thanks
Sathish R
I think it is OS dependent, so since you are on Windows, you might only need one stanza.
I would use a single stanza, but I would do it like this:
[monitor://D:\*\TV_Engine.log]
sourcetype = tv_engine
This way doesn't matter what the folder is, as long as the file TV_Engine.log
is 1 Folder down from D:\
.
I think it is OS dependent, so since you are on Windows, you might only need one stanza.
I would use a single stanza, but I would do it like this:
[monitor://D:\*\TV_Engine.log]
sourcetype = tv_engine
This way doesn't matter what the folder is, as long as the file TV_Engine.log
is 1 Folder down from D:\
.
thank you @alacercogitatus
i thought the same.
i tried below but not worked
[monitor://d:\(l|L)ogs\TV_Engine.log]
Input stanzas cannot use Regex. *
is a special character in this case.
can we use like this
[monitor://d:\*ogs\TV_Engine.log]