Getting Data In

Scripted input not working

dolezelk
Explorer

[script://$SPLUNK_HOME/etc/apps/serial_numbers/bin/test.sh]
disabled = false
host = PoC_test
index = snmp
interval = 60.0
sourcetype = serial_custom
source = PoC_test

when my script contains folowing, it will not provide anything to Splunk

!/bin/sh

/usr/bin/snmpget -v1 -O0 -c public poc_test IF-MIB::ifPhysAddress.1

but this works fine:

!/bin/sh

/usr/bin/snmpget -v1 -c public poc_rm IF-MIB::ifPhysAddress.1

anyone know where is the problem ?

0 Karma
Get Updates on the Splunk Community!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...