Getting Data In

How to configure Splunk Forwarder to NOT index historical data

vrmandadi
Builder

Recently we had issues with one of the data inputs which uses rest API add-on, sending a large volume of data.
So I have disabled the three inputs of the data type in the heavy forwarder.
I would like to enable back the inputs but I would like to get the data starting from today.
I assume once I enable it back I would get all the data that was disabled for the few days.
Is there any setting that will get the latest or today's data and where should the setting be placed?

Thanks in advance.

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi vrmandadi,
in inputs.conf use the ignoreOlderThan=1d option ( https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf ).
Ciao.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi vrmandadi,
in inputs.conf use the ignoreOlderThan=1d option ( https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf ).
Ciao.
Giuseppe

0 Karma

vrmandadi
Builder

Hello @gcusello thank you very much for your reply .Will this setting once enabled today will get only today's data and not the days this inputs were disabled right?

Can we use this input on a index setting ?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi vrmandadi,
You have to use this option in an inputs.conf stanza, e.g.:

[monitor:///var/log/messages]
index=os
sourcetype=linux
ignoreOlderThan=1d

See in the documentation ( https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf )instructions and samples.

Ciao.
Giuseppe

0 Karma

vrmandadi
Builder

Thank You.

0 Karma

gcusello
SplunkTrust
SplunkTrust

You're welcome!
Ciao and next time.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...