Splunk Dev

splunk python script

sg5258
Explorer

Hi,

I have a python script that help me to filter and process my data file before feeding to splunk.
After that, i am wondering is there a way to run the python without installing python exe.
Is there a way to use splunk python module to execute external python script?
This is because my company wouldn't allow to install other software easily.

Thanks.

Tags (1)
0 Karma
1 Solution

Takajian
Builder

If you use scripted input, you will not need to install python module. You can filter the data file, then splunk monitor the file and index it.

View solution in original post

0 Karma

Drainy
Champion

If you install a Splunk indexer and change it into a heavy forwarder you can configure it with scripted inputs as it comes with the Python interpreter. Splunk universal forwarders cannot execute python scripted inputs so if it was on a remote system you would have to install a python exe.

0 Karma

Takajian
Builder

If you use scripted input, you will not need to install python module. You can filter the data file, then splunk monitor the file and index it.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...