Getting Data In

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

msilvareal
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

richgalloway
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, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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