|
I observed that none of the log files are not indexed into Splunk when I used the environment variable, in my case it's the Windows OS "$PROGRAMFILES" env variable. An example is as below:
and there are two files in logs folder "startServer.log" and "stopServer.log". However I noticed a different behavior when I used
Both "startServer.log" and "stopServer.log" are indexed into Splunk. Is this a known limitation to only use the absolute path in the inputs.conf to monitor log files? |
|
No. In fact, Splunk itself uses the i'll try adding "whitelist" in the monitor stanza and see how things go
(16 May '10, 15:09)
Nicholas Key ♦♦
1
For whatever it's worth, I have inputs stanzas that uses an environment variables, an alternate groups, and wildcards without any issues. Here are two examples that are working fine on a 4.0.11 install:
(17 May '10, 14:58)
Lowell ♦
Just again, FYI. When I upgraded these forwarders to 4.1.3, I had problems with BOTH of my previously provided examples. I'm now using the
(29 Jun '10, 21:02)
Lowell ♦
|
|
There is an example of this being used in the windows app. Looking at Win 2k8 environment variables I see a system variable of "windir". This leads me to believe it must be a system variable (or perhaps a user variable matching the user running the splunkd service), and is case insensitive.
|