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