<?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 Re: Removing Header row after outputcsv command in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Header-row-after-outputcsv-command/m-p/54683#M10623</link>
    <description>&lt;P&gt;Pretty sure that there is no way to do this when the outputcsv command is called to generate the csv file with events from your search results. I would recommend using a script to clean up the CSV file after its been generated for which SED would be useful or using batch/cmd/powershell on Win systems. &lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2012 18:43:33 GMT</pubDate>
    <dc:creator>Rob</dc:creator>
    <dc:date>2012-01-19T18:43:33Z</dc:date>
    <item>
      <title>Removing Header row after outputcsv command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Header-row-after-outputcsv-command/m-p/54681#M10621</link>
      <description>&lt;P&gt;What are some of the methods that I can remove the header row after running the 'outputcsv' command in my search?&lt;/P&gt;

&lt;P&gt;Here are some of the fields in that header row:&lt;/P&gt;

&lt;P&gt;CreateTimeStamp_GMT Data_Source Reference_Number SourceIP_Address Incident_Category &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Header-row-after-outputcsv-command/m-p/54681#M10621</guid>
      <dc:creator>efelder0</dc:creator>
      <dc:date>2020-09-28T10:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Header row after outputcsv command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Header-row-after-outputcsv-command/m-p/54682#M10622</link>
      <description>&lt;OL&gt;
&lt;LI&gt;If the header row is in an event of its own, then use a Transform to send it to the Null Queue.&lt;/LI&gt;
&lt;LI&gt;Else If the header row is in a multi-line event, use SEDCMD to strip it out.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Option 1 is documented here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/Deploy/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/4.3/Deploy/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Option 2 is documented here:&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/Data/Anonymizedatausingconfigurationfiles#Through_a_sed_script" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/4.3/Data/Anonymizedatausingconfigurationfiles#Through_a_sed_script&lt;/A&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Oh sorry I notice that this is after using outputcsv!  No you cannot do it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Header-row-after-outputcsv-command/m-p/54682#M10622</guid>
      <dc:creator>itinney</dc:creator>
      <dc:date>2020-09-28T10:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Header row after outputcsv command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-Header-row-after-outputcsv-command/m-p/54683#M10623</link>
      <description>&lt;P&gt;Pretty sure that there is no way to do this when the outputcsv command is called to generate the csv file with events from your search results. I would recommend using a script to clean up the CSV file after its been generated for which SED would be useful or using batch/cmd/powershell on Win systems. &lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 18:43:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-Header-row-after-outputcsv-command/m-p/54683#M10623</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2012-01-19T18:43:33Z</dc:date>
    </item>
  </channel>
</rss>

