Getting Data In

File monitoring not working after re-enabling

remy06
Contributor

I have been monitoring a log file via file monitor input.I disabled the monitoring temporary for a few days but when I switched it back today,when I did a search it only showed me the latest event which was the time I stopped the monitoring few days ago.

However,on the search summary page itself,the Last Update is indicated as today,so as the same as the log file itself.

Tags (1)
0 Karma

jbsplunk
Splunk Employee
Splunk Employee

Maybe you've got some kind of a timestamp issue? What does your search look like? If you were to generate some new lines into this file and set the search to do only a search on the source w/ an all time, real time search, do you see events? What you describe makes me think this might be what you are observing, and that the time constraints of the search are masking the events. You can also try searching for some unique string over all time.

remy06
Contributor

the file that i'm monitoring is still being updated with events however splunk is not able to index the new events.

0 Karma

remy06
Contributor

The search is source="/path/file.log" on all time.

0 Karma
Get Updates on the Splunk Community!

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...