I am having a problem trying to monitor some files on some Windows servers.
The directories that I am trying to pick up the files from are:
**D:\webroot\www.foo1.foo.cd\App_Data\logs
D:\webroot\www.foo1.foo.cm\App_Data\logs**
And the file name will be similar to this:
**Aggregation.log.20191103.224856.txt**
I am needing to use wildcards in the path because the portion which is **www.foo1.foo.** changes based on which environment we are looking at and want to ensure as they bring up different environments the files are just automatically consumed.
I tried using an * in the path and it did not work. this is the inputs section right now (which is still not working):
> Blockquote
[monitor://D:\webroot]
disabled = false
sourcetype = SiteCore:cm
whitelist = .+cm\\App_Data\\logs\\Aggregation.+\.txt$
[monitor://D:\webroot]
disabled = false
sourcetype = SiteCore:cd
whitelist = .+cd\\App_Data\\logs\\Aggregation.+\.txt$
> Blockquote
any idea what I have wrong ?
↧