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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...