Getting Data In

Index data from shell script with headers

DataOrg
Builder

I want to index a shell script output thro inputs.conf.

I have configured the script

 

[script://$SPLUNK_HOME/etc/apps/search/bin/swapmem.sh]
disabled = false 
host = *
index = index_perform
interval = 30 
source = Perform
sourcetype = Memory

 

 

the output script is 

 

 	     total        used        free      shared  buff/cache   available
Swap:         32767         919       31848

 

 i want to index the first line as header as auto and map the fields vice versa but the output indexes the both lines .

 

Tags (2)
0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...