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

Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[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 ...