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
Try to use the followTail option because it reads data that arrives after the first encounter.
In inputs.conf Add
followTail=1