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!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...