Getting Data In

Does Splunk ingest files that existed before the remote folder monitor was created?

williamcharlton
Path Finder

I have a client server with a universal forwarder configured to forward data to an index server. On the client server, I have a folder "X" full of CSV files. If I create a remote folder monitor for the client server folder "X" on my deployment server and deploy it to the client server.

Will Splunk process the CSV files that are already there. or will Splunk not do anything until the folder contents change?

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi williamcharlton0028,
Splunk will process all events the it can find in the monitored folder from 6 years old.
Then it will process only changes.

If you don't want too old data, you can exclude older data using the option

ignoreOlderThan = <non-negative integer>[s|m|h|d]

in inputs.conf stanza.

Bye.
Giuseppe

View solution in original post

woodcock
Esteemed Legend

It will forward every file that is there. If any file has events with timestamps that are 6 years old or older, they will all be processed and forwarded but then dropped by the indexers, unless you modify MAX_DAYS_AGO setting. The ignoreOlderThan settings does not work that way that most people expect it to so I would not use it. Instead, if you would like to avoid indexing files, move the old ones to not forward into another directory that is not monitored.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi williamcharlton0028,
Splunk will process all events the it can find in the monitored folder from 6 years old.
Then it will process only changes.

If you don't want too old data, you can exclude older data using the option

ignoreOlderThan = <non-negative integer>[s|m|h|d]

in inputs.conf stanza.

Bye.
Giuseppe

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!

Build the Future of Agentic AI: Join the Splunk Agentic Ops Hackathon

AI is changing how teams investigate incidents, detect threats, automate workflows, and build intelligent ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

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