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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...