<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Index data from shell script with headers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Index-data-from-shell-script-with-headers/m-p/545284#M90922</link>
    <description>&lt;P&gt;I want to index a shell script output thro inputs.conf.&lt;/P&gt;&lt;P&gt;I have configured the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[script://$SPLUNK_HOME/etc/apps/search/bin/swapmem.sh]
disabled = false 
host = *
index = index_perform
interval = 30 
source = Perform
sourcetype = Memory&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the output script is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; 	     total        used        free      shared  buff/cache   available
Swap:         32767         919       31848&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i want to index the first line as header as auto and map the fields vice versa but the output indexes the both lines .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 07:26:31 GMT</pubDate>
    <dc:creator>DataOrg</dc:creator>
    <dc:date>2021-03-25T07:26:31Z</dc:date>
    <item>
      <title>Index data from shell script with headers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-data-from-shell-script-with-headers/m-p/545284#M90922</link>
      <description>&lt;P&gt;I want to index a shell script output thro inputs.conf.&lt;/P&gt;&lt;P&gt;I have configured the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[script://$SPLUNK_HOME/etc/apps/search/bin/swapmem.sh]
disabled = false 
host = *
index = index_perform
interval = 30 
source = Perform
sourcetype = Memory&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the output script is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; 	     total        used        free      shared  buff/cache   available
Swap:         32767         919       31848&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i want to index the first line as header as auto and map the fields vice versa but the output indexes the both lines .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 07:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-data-from-shell-script-with-headers/m-p/545284#M90922</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2021-03-25T07:26:31Z</dc:date>
    </item>
  </channel>
</rss>

