<?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: How to remove spaces from CSV column names to get data into a pivot table? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-spaces-from-CSV-column-names-to-get-data-into-a/m-p/167711#M33945</link>
    <description>&lt;P&gt;&lt;CODE&gt;sedcmd&lt;/CODE&gt; will not work with Indexed Extractions. Remove the &lt;CODE&gt;indexed extraction=csv&lt;/CODE&gt; from your &lt;CODE&gt;props&lt;/CODE&gt; and extract using &lt;CODE&gt;DELIMs&lt;/CODE&gt;. You will now be able to use &lt;CODE&gt;SEDCMD&lt;/CODE&gt; to replace spaces with underscore (or whatever)&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2016 13:27:51 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-06-01T13:27:51Z</dc:date>
    <item>
      <title>How to remove spaces from CSV column names to get data into a pivot table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-spaces-from-CSV-column-names-to-get-data-into-a/m-p/167709#M33943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to ingest some CSV files that contain QOS metrics.  The issue I have is that I need to get this data into a pivot table which stops and complains of the spaces.  Now when I add the extracted attributes, I do have the options to rename each field name.  Not an ideal solution if the CSV contains 100+ columns &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I've tried defining the SEDCMD "SEDCMD = 's/ //g'" command in props.conf but this had no effect.  Has anyone come across this and auto removed the spaces?&lt;/P&gt;

&lt;P&gt;eg:&lt;BR /&gt;
CLASS_MRR_Backup - Throughput (I/O/sec)&lt;/P&gt;

&lt;P&gt;So when "Add Auto-Extracted Field", I get the error "Field Name can not contain whitespace, double quotes, single quotes, curly braces or asterisks."  even if I use the rename option.&lt;/P&gt;

&lt;P&gt;Cheers&lt;BR /&gt;
Steve&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:06:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-spaces-from-CSV-column-names-to-get-data-into-a/m-p/167709#M33943</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2020-09-28T19:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove spaces from CSV column names to get data into a pivot table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-spaces-from-CSV-column-names-to-get-data-into-a/m-p/167710#M33944</link>
      <description>&lt;P&gt;I have exactly the same issue, I working to fix it, but if you have found a solution please post the answer.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-spaces-from-CSV-column-names-to-get-data-into-a/m-p/167710#M33944</guid>
      <dc:creator>gpareesi11</dc:creator>
      <dc:date>2016-06-01T13:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove spaces from CSV column names to get data into a pivot table?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-spaces-from-CSV-column-names-to-get-data-into-a/m-p/167711#M33945</link>
      <description>&lt;P&gt;&lt;CODE&gt;sedcmd&lt;/CODE&gt; will not work with Indexed Extractions. Remove the &lt;CODE&gt;indexed extraction=csv&lt;/CODE&gt; from your &lt;CODE&gt;props&lt;/CODE&gt; and extract using &lt;CODE&gt;DELIMs&lt;/CODE&gt;. You will now be able to use &lt;CODE&gt;SEDCMD&lt;/CODE&gt; to replace spaces with underscore (or whatever)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-spaces-from-CSV-column-names-to-get-data-into-a/m-p/167711#M33945</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-01T13:27:51Z</dc:date>
    </item>
  </channel>
</rss>

