<?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 convert excel with multiple tabs to multiple csvs and then upload to splunk with a script? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-excel-with-multiple-tabs-to-multiple-csvs-and/m-p/397151#M70799</link>
    <description>&lt;P&gt;You are correct. I found some power shell commands to resolve it. The one I found is also quite popular and known as jrepl  . It can be used to remove the double quote with the following code:-&lt;BR /&gt;
    for /f "delims=" %%a in ('dir *.csv /b /a-d ') do (&lt;BR /&gt;
       echo processing "%%a" &lt;BR /&gt;
       call jrepl "\x22" "" /x /f "%%a" /O -&lt;BR /&gt;
    )&lt;/P&gt;

&lt;P&gt;The above code will remove the double quotes in all CSVs in a folder where jrepl.bat is also saved. It should be saved inside another .bat file. &lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 09:13:24 GMT</pubDate>
    <dc:creator>Chandras11</dc:creator>
    <dc:date>2018-06-26T09:13:24Z</dc:date>
    <item>
      <title>How to convert excel with multiple tabs to multiple csvs and then upload to splunk with a script?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-excel-with-multiple-tabs-to-multiple-csvs-and/m-p/397148#M70796</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I get a report ( 3tabs, 64 columns and 10k+ rows with all kind of data) every day multiple times. I need to upload the data as csv (3 csvs for each tab and a predefined source type for each csv)  to Splunk in the same index. &lt;/P&gt;

&lt;P&gt;Currently, I wrote an Excel-VBA script with replacing a few keywords and then creating the CSV for each excel tab. However, when this CSV gets generated , Excel appends double quote (") at the beginning and end of each row cell. Therefore, I need to open all CSVs in Notepad++ and remove the double quote (")  manually. After that, I upload all the data in Splunk enterprise.&lt;BR /&gt;
I believe, there are multiple workarounds for this issue. &lt;BR /&gt;
I am just looking for certain pointers if:&lt;BR /&gt;
1. Is there any already available app for one-click excel to CSV convert and upload to Splunk (with some customization). I just found &lt;A href="https://splunkbase.splunk.com/app/1832/"&gt;https://splunkbase.splunk.com/app/1832/&lt;/A&gt;  but I am not sure about the customization&lt;BR /&gt;
2. Could you please recommend any scripting tool, which can help me with this. &lt;/P&gt;

&lt;P&gt;Thanks a lot for your time. &lt;/P&gt;</description>
      <pubDate>Sun, 13 May 2018 09:27:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-excel-with-multiple-tabs-to-multiple-csvs-and/m-p/397148#M70796</guid>
      <dc:creator>Chandras11</dc:creator>
      <dc:date>2018-05-13T09:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert excel with multiple tabs to multiple csvs and then upload to splunk with a script?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-excel-with-multiple-tabs-to-multiple-csvs-and/m-p/397149#M70797</link>
      <description>&lt;P&gt;That app you found seems to be for exporting data as xls, not for importing xls.&lt;/P&gt;

&lt;P&gt;Are you sure that trouble to remove quotes is actually necessary? Have you tried ingesting it into splunk without stripping those quotes first (possibly with the addition of setting &lt;CODE&gt;FIELD_QUOTE="&lt;/CODE&gt; in props.conf)?&lt;/P&gt;

&lt;P&gt;I'd suggest googling for some powershell code to convert xlsx to csv and then turn that into a Splunk scripted input.&lt;/P&gt;</description>
      <pubDate>Sun, 13 May 2018 10:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-excel-with-multiple-tabs-to-multiple-csvs-and/m-p/397149#M70797</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-13T10:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert excel with multiple tabs to multiple csvs and then upload to splunk with a script?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-excel-with-multiple-tabs-to-multiple-csvs-and/m-p/397150#M70798</link>
      <description>&lt;P&gt;Let me check with FIELD_QUOTE="  in Splunk. I tried to upload the CSV without removing the Double Quotes and it resulted in a single field. After that, I need to extract all the fields again separately in Splunk. As I wrote that the excel contains all kind of data (including some cells with Double Quotes as well comma and the German characters ä,ö,ü ß etc, I need to correct the data beforehand. In Excel VBA, there is a replace command to do it. &lt;/P&gt;</description>
      <pubDate>Sun, 13 May 2018 12:06:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-excel-with-multiple-tabs-to-multiple-csvs-and/m-p/397150#M70798</guid>
      <dc:creator>Chandras11</dc:creator>
      <dc:date>2018-05-13T12:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert excel with multiple tabs to multiple csvs and then upload to splunk with a script?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-excel-with-multiple-tabs-to-multiple-csvs-and/m-p/397151#M70799</link>
      <description>&lt;P&gt;You are correct. I found some power shell commands to resolve it. The one I found is also quite popular and known as jrepl  . It can be used to remove the double quote with the following code:-&lt;BR /&gt;
    for /f "delims=" %%a in ('dir *.csv /b /a-d ') do (&lt;BR /&gt;
       echo processing "%%a" &lt;BR /&gt;
       call jrepl "\x22" "" /x /f "%%a" /O -&lt;BR /&gt;
    )&lt;/P&gt;

&lt;P&gt;The above code will remove the double quotes in all CSVs in a folder where jrepl.bat is also saved. It should be saved inside another .bat file. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 09:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-convert-excel-with-multiple-tabs-to-multiple-csvs-and/m-p/397151#M70799</guid>
      <dc:creator>Chandras11</dc:creator>
      <dc:date>2018-06-26T09:13:24Z</dc:date>
    </item>
  </channel>
</rss>

