Splunk Dev

is it possible outputlookup from python script

gots
Path Finder

I trying to create leases table from log.
For this task i have write python script which prepare data for lookup.
Is it possible to write this data back to splunk for using them in lookup command.
So i need something like outputlookup, but from python script.

Thank you.

Tags (2)
0 Karma

DalJeanis
Legend

Yes. One way is you could configure the python script to output the lookup table and put it somewhere that splunk could see it, and configure an external lookup within splunk to get it as needed or as updated. (for instance, by monitoring the landing directory for changes.)

http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Configureexternallookups

Here's another good source of links - https://answers.splunk.com/answers/377934/use-rest-to-create-a-lookup.html

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...