Getting Data In

Adding an Interval to a Monitor Stanza

ericg57
Engager

Is there a way to add an interval setting to define the polling for a flat file? Not sure why it was requested but i was asked if it was possible and thought for sure it was only to find that it is currently not an option according to the inputs.conf section in the admin manual.

https://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf

I read that the default polling may be 1ms, to collect the modified file in near real time. I offered an alternative to create a sh or ps to Get-Content or some other scripting language and then set an interval to read the flat file at their desired time, however i would have to duplicate all of the options available for a file monitor stanza such as crcsalt and whitelist blacklist within the script which would have to be code reviewed and go through a lengthy pipeline.

ANy help would be appreciated to say if this is a definite no go or if it is a possible ehancement request to splunk for the next version.

thank you

 

 

Labels (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @ericg57,

I agree with you: I don't remember that it's possible to change the monitoring interval but why do you want this?

It's better to have the new events as soon as possible, and they are read in near real time.

The solution with a script is possible but it makes the same job of the monitor command, so why?

Ciao.

Giuseppe

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...