Splunk Dev

Scheduling a periodic update on kvstore using python

vinay3006
Engager

Hi
I have a python code which pulls data from a source using REST API and updates the KVStore collection. However i want this to run on a period basis say once in 24 hours. What is the best way to schedule this?
Regards,
V

Labels (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

You could use cron or you could create a scripted input that runs your python daily. I prefer the latter.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

You could use cron or you could create a scripted input that runs your python daily. I prefer the latter.

---
If this reply helps you, Karma would be appreciated.

vinay3006
Engager

for scripted inputs, I do not have any data to index, i would like to use only the kvstore collections. Is it possible to run the scripts without indexing data?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

If the script does not write anything to stdout then nothing will be indexed.

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

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...