Getting Data In

How to re index the same file within a specified time?

New Member

Good afternoon,

It is possible to index the same complete file within a certain period of time.

Example: I have a configuration file with approximately 2000 lines and 61kb, I needed to index this file once every 6 hours.

Would anyone have any ideas? I tried to make some settings in the file input.conf and props.conf, but all without success.

Thanks in advance for your support.

0 Karma

SplunkTrust
SplunkTrust

One slightly ugly approach is to schedule a scripted input to run every 6 hours. The script can be a few lines of python code that read the file and write it to stdout, which Splunk will index.

---
If this reply helps you, an upvote would be appreciated.
0 Karma