Getting Data In

Force agent to not send events before a given time

horizonsecurity
Explorer

Hi *,

I'm in development environment and I'd like to not receive all the old data from the agent.

I have one server and some agents, and I delete indexes for cleaning reasons from Splunk server, but when I restart the splunk service, all the old data comes through.

How can I tell the agents (or the server) to not send me the events before 1 day?
Or before 3 hours ... or anything custom.

Thanks!

Tags (1)
0 Karma
1 Solution

Ayn
Legend

With regular file-monitor inputs you can use the ignoreOlderThan directive. For instance

[monitor:///path/to/the/input]
ignoreOlderThan = 1d

http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Inputsconf

View solution in original post

Ayn
Legend

With regular file-monitor inputs you can use the ignoreOlderThan directive. For instance

[monitor:///path/to/the/input]
ignoreOlderThan = 1d

http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Inputsconf

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...