Hi, I need to write a custom script that is in python which needs to access search results. What is the best way that I can utilize Splunk's search, get results, parse them and get access to the results from within my custom code?
Thanks alot.
Check out the eval and rename commands. These will you to make new fields and override the values of existing fields. No Python required.
If you do want to write a custom Search command, then check out these docs.
Edit - jonuwz And on the offchance you actually mean you need the SDK to connect to splunk, run a search then read the results - the SDK docs are here
@jonuwz: good point.