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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...