Getting Data In

How to input data from perl script to splunk?

lemmerich
Engager

Hello guys, I am new to splunk and I am trying to input data from a perl script.

Script is very simple, a helloworld.pl that prints "timestamp hello world". (running the script from command line output the correct string...

I have already added the script to splunk/bin/scripts and created a script data input configuration on the UI (generic_single_line results). When searching for data though i get a No results found. / 0 events.

Any help on what I am missing?

MuS
SplunkTrust
SplunkTrust

Hi lemmerich,

try running your script from the CLI

$SPLUNK_HOME/bin/splunk cmd $SPLUNK_HOME/bin/scripts/helloworld.pl 

and see what happens. Next check index=_internal sourcetype=splunkd for any message related to helloworld.pl. Check the inputs.conf and verify the index setting for your script and search the index over all time.

Hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

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

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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