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!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...