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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...