Getting Data In

Index only new lines

grivera_kudaw
Explorer

Hi.

I have a requirement of a client, he has a file that indexes every day, but that file is modified at different times, for example modifications to lines 8 and 10000 at 20:00hrs, after modifications of lines 2 and 10100 at 22:00 hrs , Is it possible to index only the lines that have been modified?, at 2:00 am the file not change more.

Tags (1)
0 Karma
1 Solution

FrankVl
Ultra Champion

No, Splunk cannot be configured to monitor individual changes inside a file. Just the entire file, or new lines at the end of a file.

So the only way to do this would be to write some kind of script that detects the changes and writes those to a new file that is monitored by Splunk.

View solution in original post

FrankVl
Ultra Champion

No, Splunk cannot be configured to monitor individual changes inside a file. Just the entire file, or new lines at the end of a file.

So the only way to do this would be to write some kind of script that detects the changes and writes those to a new file that is monitored by Splunk.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

How to find the worst searches in your Splunk environment and how to fix them

Everyone knows Splunk is a powerful platform for running searches and doing data analytics. Your ...

Share Your Feedback: On Admin Config Service (ACS)!

Help Us Build a Better Admin Config Service Experience (ACS)   We Want Your Feedback on Admin Config Service ...