Monitoring Splunk

Add moitor changes are not reflecting to my search

prathapkcsc
Explorer

I have some data with 4 lines in my.txt file. I uploaded this file into splunk, Successfully getting this data as a event.
This is my search source="my.txt" sourcetype="my1_monitor"
After i added this file to monitor clause in input.conf.
My input.conf`
[monitor: //C:\Users\Users\Desktop\my.txt]
sourcetype=my1_monitor

After this, 3 more lines of data added to that file and i restarted the splunkd.exe service.
But, Still changes are not reflecting my search, First 4 lines of data was showing.
Any solution for this problem.

Thank you

0 Karma

lavanyaanne
Path Finder

Try to use the followTail option because it reads data that arrives after the first encounter.
In inputs.conf Add
followTail=1

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...