I have a directory with a list of files as follows:
My inputs.conf file:
[monitor:///var/log/xxxxx]
index = test
crcSalt =
sourcetype = test
disabled = false
blacklist = (/nodeagent|/dmgr|/ffdc)
whitelist = (ScheduleSplit\.log$|job*\.log$)
However, none of the files are being indexed. There are events in those files for today.
I added the "crcSalt = " parameter, but that did not help.
The only relevant messages I see in the splunkd.log are as follows:
0-14-2014 15:41:56.843 -0400 WARN ulimit - Core file generation disabled
I am not sure what that means.
Any help would be appreciated. Is this a problem with the "whitelist" statement?
Steve Rogers
The problem is in whitelist, it should be
whitelist = (ScheduleSplit.log|Job.*.log)$
put ""
Thanks to everyone who contributed answers. After using the "list monitor" command, it showed that the files in question were being monitored. The problem was in the search. The files were going to a specific index which was not included by default in the "user" role. I added that index as a default to the "user role" and the logs are now showing.
Thanks again to everyone who contributed answers.
Shouldn't the crcSalt have something on the other side of the "=" also? For instance, on my servers with extremely rapid log rolling I use "crcSalt = SOURCE" to help avoid missing/dropping files.
Must be because of the brackets. I have the value of "SOURCE" on the crcSalt parameter.
Thanks.
Ah, it was getting eaten by the Splunk Answers gremlins 🙂
Jeremiah - yes. I have crcSalt =
I am not sure why it dropped on the initial post.
The problem is in whitelist, it should be
whitelist = (ScheduleSplit.log|Job.*.log)$
put ""
Is there an option / utility in Splunk which shows which files / directories are being monitored?
I looked at the "S.o.S." app, but could not see what I am looking for there either.
Thanks.
I use the command line for this... navigate to your Splunk install directory, then type "./bin/splunk list monitors"
edit - Do this where you have the inputs.conf defined... assuming on your forwarder
Thanks very much Jeremiahc4. The "list monitor" command showed me what I was looking for.
Something tells me to try this whitelist:
whitelist = (ScheduleSplit\.log|job.*\.log)$
Chanfoli - this did not work. Files are still not being picked up. Thanks.
Try with this
[monitor:///var/log/xxxxx/*]