Splunk Enterprise

File monitor wildcard not matching?

jdmclemore
Path Finder

I'm trying to monitor a catalina logs that look like this:

/home/loader/logs/catalina.2017-09-01.log

with this file monitor stanza:

[monitor:///home/loader/logs/catalina.*.log]
disabled = false
sourcetype = catalina

But I'm not seeing any data. Any reason why that wildcard would not match that file?

Tags (1)
0 Karma
1 Solution

burwell
SplunkTrust
SplunkTrust
  1. Like Woodcock suggests, be sure you have index=main on your search
  2. For a quick search, change the time period to All Time. Perhaps you are having time parsing issues. Oftentimes I find my data is in Splunk. I am just looking in the wrong time interval.
  3. Look in the forwarder logs when you restart Splunk and make sure that the forwarder is monitoring the directory you expect
  4. Check to make sure that the user who runs Splunk can read the logs.

View solution in original post

0 Karma

burwell
SplunkTrust
SplunkTrust
  1. Like Woodcock suggests, be sure you have index=main on your search
  2. For a quick search, change the time period to All Time. Perhaps you are having time parsing issues. Oftentimes I find my data is in Splunk. I am just looking in the wrong time interval.
  3. Look in the forwarder logs when you restart Splunk and make sure that the forwarder is monitoring the directory you expect
  4. Check to make sure that the user who runs Splunk can read the logs.
0 Karma

jdmclemore
Path Finder

Thanks for the suggestions...turned out to be user error. 🙂 My wildcard DID match the file name.

0 Karma

woodcock
Esteemed Legend

You haven't told it what index to go to. Try this for a test:

[monitor:///home/loader/logs/catalina.*.log]
disabled = false
sourcetype = catalina
index = main
0 Karma

ddrillic
Ultra Champion

It should. For sanity check, I would put [monitor:///home/loader/logs/catalina.2017-09-01.log] if you haven't done it yet... index=main?

0 Karma
Get Updates on the Splunk Community!

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...