Splunk Dev

Splunk Python Scripting

nilampakhare
New Member

I need to provide the output of splunk search result to a python script which will print the output from the search result to a logger or console using python..

For instance,
index="fact_agg" | addresult.py

So here my index is "fact_agg" and my python script would be addresult.py ...Can I provide the output of index "fact_agg" to the python script which in turn will log the output to a logger or console using python script...
Please look further..

Tags (2)
0 Karma

Damien_Dallimor
Ultra Champion

Why don't you use the Splunk SDK for Python ,write a python script that executes the search "index=fact_agg" , and output the results as you require them.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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