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!

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...