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!

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

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

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...