<?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: SEDCMD to remove spaces in csv header fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-remove-spaces-in-csv-header-fields/m-p/575293#M200467</link>
    <description>&lt;P&gt;Is the list of fields known and static? Then you can use the props.conf setting&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FIELD_NAMES = field_1, field_2, field_3&lt;/PRE&gt;&lt;P&gt;to tell splunk what field names to use, rather than take them from the header row.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 15:46:28 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2021-11-17T15:46:28Z</dc:date>
    <item>
      <title>SEDCMD to remove spaces in csv header fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-remove-spaces-in-csv-header-fields/m-p/575119#M200403</link>
      <description>&lt;P&gt;what's the best way to set a sedcmd in props to remove spaces and add a " _ " in just the a cvs header line? for example-&lt;/P&gt;&lt;P&gt;I have a csv header like this;&lt;/P&gt;&lt;P&gt;field 1, field 2, filed 3&lt;/P&gt;&lt;P&gt;and I want the fields to be&lt;/P&gt;&lt;P&gt;field_1, field_2, filed_3&lt;/P&gt;&lt;P&gt;but just for the header, not for the data in the fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this in a old post but, it will change everything with a space even the data:&lt;/P&gt;&lt;PRE&gt;inputs.conf
[monitor://c:\temp\sed-csv.log]
disable=false
index=sedcsv
sourcetype=sedcsv

props.conf
[sedcsv]
SEDCMD-replacespace = s/ /_/g&lt;/PRE&gt;&lt;P data-unlink="true"&gt;https://community.splunk.com/t5/Splunk-Search/CSV-Field-Extraction-with-spaces-in-field-name/m-p/245974&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 19:14:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-remove-spaces-in-csv-header-fields/m-p/575119#M200403</guid>
      <dc:creator>sbattista</dc:creator>
      <dc:date>2021-11-16T19:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to remove spaces in csv header fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-remove-spaces-in-csv-header-fields/m-p/575293#M200467</link>
      <description>&lt;P&gt;Is the list of fields known and static? Then you can use the props.conf setting&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FIELD_NAMES = field_1, field_2, field_3&lt;/PRE&gt;&lt;P&gt;to tell splunk what field names to use, rather than take them from the header row.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 15:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-remove-spaces-in-csv-header-fields/m-p/575293#M200467</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2021-11-17T15:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD to remove spaces in csv header fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-remove-spaces-in-csv-header-fields/m-p/575294#M200468</link>
      <description>&lt;P&gt;sorry, I should have said this will be dynamic across about 50 or so different CSV's with different headers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 15:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SEDCMD-to-remove-spaces-in-csv-header-fields/m-p/575294#M200468</guid>
      <dc:creator>sbattista</dc:creator>
      <dc:date>2021-11-17T15:59:09Z</dc:date>
    </item>
  </channel>
</rss>

