Splunk Search

how to run a python file in splunk?

harshal_chakran
Builder

Hi,

I have created a python file "newapp.py", which does the normal search operation. I run it on console and get the respective result from it.
Now I need to know while creating an application for Splunk:

1) Where do I put this newapp.py file?

2) How does my application will come to know, which file to take?

3) How to show my output on Splunk web?

Kindly help

Tags (4)
0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi harshal_chakranarayan,

find all the needed information in this doc about add the custom command to Splunk

hope this helps ...

cheers, MuS

View solution in original post

MuS
SplunkTrust
SplunkTrust

Hi harshal_chakranarayan,

find all the needed information in this doc about add the custom command to Splunk

hope this helps ...

cheers, MuS

harshal_chakran
Builder

Hi,
I have tried the steps mentioned in above link. But I see no output after restarting Splunk. I have placed my python file in bin folder of the app and defined the call in commands.conf file. Am I doing anything wrong??

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...