<?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 modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110530#M23202</link>
    <description>&lt;P&gt;Finaly I used Date Model :&lt;/P&gt;

&lt;P&gt;rex mode=sed field=&lt;EM&gt;FIELD&lt;/EM&gt; "s/,/./g"&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2015 07:33:17 GMT</pubDate>
    <dc:creator>Maite35</dc:creator>
    <dc:date>2015-08-11T07:33:17Z</dc:date>
    <item>
      <title>How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110522#M23194</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am using &lt;CODE&gt;FIELD_DELIMITER=;&lt;/CODE&gt; and am working on data that use commas instead of decimals. I want to use a SED to replace those with dots when indexing (s /,/./ g) I tried this in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-coma = s/,/./g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also tried this in props. Conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-toto = toto
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And in  transforms.conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[toto]
REGEX = s/,/./g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And in all cases the behavior is the same : on my raw events ( &lt;CODE&gt;_raw&lt;/CODE&gt; ) it works fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;18/03/2015;23:50:00;XXX;XXX;XXX;16;6.52;41740109;0.03;46987.89;193790;0;12885230;0;25215.5;0;15;87;0;0;40008787;0;37.97;0;667;563.19;47255.63;525.22;369.59
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it never effects the fields that are exracted:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10 premières valeurs,          Nombre,     %
0          3832     6,415 %
0,07        108     0,181 %
0,76        103     0,172 %
0,02        97      0,162 %
0,77        96      0,161 %
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ideas to do this?&lt;/P&gt;

&lt;P&gt;Thank you in advance. Best Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2015 09:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110522#M23194</guid>
      <dc:creator>Maite35</dc:creator>
      <dc:date>2015-03-27T09:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110523#M23195</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;In props.conf:

    SEDCMD-coma = s/(\d*),(\d*)/\1.\2/g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2015 20:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110523#M23195</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-03-27T20:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110524#M23196</link>
      <description>&lt;P&gt;hello somesoni2  and thank you for your answer and help.&lt;BR /&gt;
 The behavior with what you offer is the same as quoted above: dot is present in _raw but not passed on to the fields extracted from csv file.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 07:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110524#M23196</guid>
      <dc:creator>Maite35</dc:creator>
      <dc:date>2015-03-30T07:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110525#M23197</link>
      <description>&lt;P&gt;How are you creating your fields?  Are you using &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt; as described here?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110525#M23197</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-10T13:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110526#M23198</link>
      <description>&lt;P&gt;Hi woodcock,&lt;/P&gt;

&lt;P&gt;Yes I am using INDEXED_EXTRACTIONS=CSV&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:41:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110526#M23198</guid>
      <dc:creator>Maite35</dc:creator>
      <dc:date>2015-08-10T13:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110527#M23199</link>
      <description>&lt;P&gt;It looks like you will probably have to pre-process the file outside of Splunk.  I wish there was more detail here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Configurationparametersandthedatapipeline"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Configurationparametersandthedatapipeline&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 14:19:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110527#M23199</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-10T14:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110528#M23200</link>
      <description>&lt;P&gt;Thanks for your help !&lt;BR /&gt;
finaly, I used Data-model to sed my coma with point ... &lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 14:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110528#M23200</guid>
      <dc:creator>Maite35</dc:creator>
      <dc:date>2015-08-10T14:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110529#M23201</link>
      <description>&lt;P&gt;OK, post exactly what you did as an &lt;CODE&gt;Answer&lt;/CODE&gt; and then &lt;CODE&gt;Accept&lt;/CODE&gt; your answer so that we can all learn.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 14:41:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110529#M23201</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-10T14:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110530#M23202</link>
      <description>&lt;P&gt;Finaly I used Date Model :&lt;/P&gt;

&lt;P&gt;rex mode=sed field=&lt;EM&gt;FIELD&lt;/EM&gt; "s/,/./g"&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 07:33:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110530#M23202</guid>
      <dc:creator>Maite35</dc:creator>
      <dc:date>2015-08-11T07:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110531#M23203</link>
      <description>&lt;P&gt;OK, your solution was to post-modify the fields one-by-one at search time.  You don't have to use a Data Model, you can just do it like this whenever you need it (search bar, dashboard), like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex mode=sed field=&amp;lt;SomeFieldName&amp;gt; "s/,/./g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Aug 2015 13:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110531#M23203</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-11T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110532#M23204</link>
      <description>&lt;P&gt;please what did you do exactly?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 21:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110532#M23204</guid>
      <dc:creator>rapmancz</dc:creator>
      <dc:date>2016-04-09T21:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify CSV raw event data before fields extraction stage of INDEXED_EXTRACTIONS=CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110533#M23205</link>
      <description>&lt;P&gt;You should "Accept" the answer from the person who gives you the answer.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 01:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-modify-CSV-raw-event-data-before-fields-extraction-stage/m-p/110533#M23205</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-04-10T01:20:36Z</dc:date>
    </item>
  </channel>
</rss>

