<?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 CSV files with scientific notation fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-files-with-scientific-notation-fields/m-p/269120#M51680</link>
    <description>&lt;P&gt;I have a folder monitored by Splunk where CSV files are uploaded and sucked into Splunk. Splunk reads them no sweat and I can work with the data, the only problem is that the numerical values in the CSV files are all in Scientific notation and look for example like “2.7584000000000e+04” instead of simply “27584”. Splunk interprets them as numerical (not string) and I can fix this at search time with a few evals, but I have to do it for every search and  was wondering if there's no way to fix this before the CSV files are indexed in Splunk? Say via editing props.conf? &lt;/P&gt;

&lt;P&gt;Any help is much appreciated &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2016 12:36:16 GMT</pubDate>
    <dc:creator>external_alien_</dc:creator>
    <dc:date>2016-07-22T12:36:16Z</dc:date>
    <item>
      <title>CSV files with scientific notation fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-files-with-scientific-notation-fields/m-p/269120#M51680</link>
      <description>&lt;P&gt;I have a folder monitored by Splunk where CSV files are uploaded and sucked into Splunk. Splunk reads them no sweat and I can work with the data, the only problem is that the numerical values in the CSV files are all in Scientific notation and look for example like “2.7584000000000e+04” instead of simply “27584”. Splunk interprets them as numerical (not string) and I can fix this at search time with a few evals, but I have to do it for every search and  was wondering if there's no way to fix this before the CSV files are indexed in Splunk? Say via editing props.conf? &lt;/P&gt;

&lt;P&gt;Any help is much appreciated &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 12:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-files-with-scientific-notation-fields/m-p/269120#M51680</guid>
      <dc:creator>external_alien_</dc:creator>
      <dc:date>2016-07-22T12:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: CSV files with scientific notation fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-files-with-scientific-notation-fields/m-p/269121#M51681</link>
      <description>&lt;P&gt;You can setup your &lt;CODE&gt;eval&lt;/CODE&gt; statements as &lt;CODE&gt;calculated fields&lt;/CODE&gt; using the &lt;CODE&gt;EVAL-&lt;/CODE&gt; syntax here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 12:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-files-with-scientific-notation-fields/m-p/269121#M51681</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-22T12:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: CSV files with scientific notation fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-files-with-scientific-notation-fields/m-p/269122#M51682</link>
      <description>&lt;P&gt;But doesn't that mean I have to know all the field names beforehand? Seeing as I have a large number of fields with values in scientific notation this is unfeasible, not to mention that field names may vary &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; &lt;BR /&gt;
Is it theoretically possible to identify all values that contain say "e+" and rework them as plain decimal? &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 13:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-files-with-scientific-notation-fields/m-p/269122#M51682</guid>
      <dc:creator>external_alien_</dc:creator>
      <dc:date>2016-07-22T13:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: CSV files with scientific notation fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-files-with-scientific-notation-fields/m-p/269123#M51683</link>
      <description>&lt;P&gt;In that case, you need to create a &lt;CODE&gt;macro&lt;/CODE&gt; using &lt;CODE&gt;foreach&lt;/CODE&gt; and then use it whenever you need it.  That is the best that you can do.  Unfortunately, you cannot make the macro call automatic.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 14:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-files-with-scientific-notation-fields/m-p/269123#M51683</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-22T14:10:07Z</dc:date>
    </item>
  </channel>
</rss>

