All Apps and Add-ons

Run script without sending to index

Dpeedahnb
Explorer

I wish to run a python script that updates files within a monitoring directory, without directly sending any files to the index. All the examples I’ve seen have people running a script and sending logs to their index.

Would removing the sourcetype/ index fields make it act the way I want? Or will it behave the way I want as long as I’m not sending logs within the script. Sorry for any confusion.

1
2
3
4
5
[script://./bin/TA-SimpleApp.py]
interval = 10
sourcetype = my_sourcetype
disabled = False
index = main
 
Labels (2)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

You could drop all data from your custom sourcetype into the nullQueue so that it doesnt reach the indexing queue. The below should help:

props.conf

[my_sourcetype]
TRANSFORMS-ignore = null_queue


transforms.conf

[nullqueue]
REGEX = .
DEST = queue
FORMAT = nullQueue
0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...