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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...