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

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