Getting Data In

How to configure batch file in inputs.conf of the TA-app to run every X seconds?

tbrown
Path Finder

I have a batch file in the jar directory of a TA-app on all my forwarders. 

The batch file has the following structure:

 

process1 > D:\process1_stats.txt
process2 > D:\process2_stats.txt

 

How would I configure this in inputs.conf of the TA-app to run this batch file every X seconds?

I've tried using a script stanza, but that simply echoes what is put into the Cmd prompt and the .txt files are getting populated.

Labels (3)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try adding @echo off to the top of the batch file to prevent Windows from displaying the contents of the file.

One cannot schedule a script to run every X seconds.  The smallest increment is one minute.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...