Getting Data In

SPLUNK METRIC INDEXES props and transforms files

michaldygaz
New Member

So i have written a script that outputs current switch ram and CPU usage and I wanted to include it to Splunk App to dynamically write it to splunks metric index.

Example output:
"1532007403","cisco.usage.processorram","","s"
"1532007409","cisco.usage.ram","","g"

Here's my inputs.conf file:
//path to script
[script://$SPLUNK_HOME/etc/apps/Collector/bin/RAM_usage.sh]
disabled = false
index = snmp
sourcetype = snmp
interval = 1

Unfortunately im getting this error in Splunk: Metric event data without metric name is invalid and would not be indexed. Ensure the input metric data is not malformed.

My question is: if anybody faced same problem and how should i solve it. Step by step solution would be appreciated.

0 Karma

poete
Builder

Hello @michaldygaz,

can you please share the sourcetype?

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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