<?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: Decimal : how to use &amp;quot;,&amp;quot; vs &amp;quot;.&amp;quot; ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92588#M23898</link>
    <description>&lt;P&gt;Thanks guys !!!!!! ... great ideas indeed !!!!!!!!!!!&lt;/P&gt;

&lt;P&gt;Question : are there any "permanent/faster" ways to make this "standard" for numeric quantities the "standard" for a customer installation ? &lt;/P&gt;

&lt;P&gt;I was thinking that something Just like &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Configurecharactersetencoding"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Configurecharactersetencoding&lt;/A&gt; should exist "built in" in Splunk to make him aware of other standards ... maybe at index time ?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2012 12:03:51 GMT</pubDate>
    <dc:creator>arturo</dc:creator>
    <dc:date>2012-03-15T12:03:51Z</dc:date>
    <item>
      <title>Decimal : how to use "," vs "." ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92585#M23895</link>
      <description>&lt;P&gt;Folks : &lt;/P&gt;

&lt;P&gt;I have a customer using numbers in "spanish" standard (a number in the US Standard like 1,000,000.25 is represented in logs as 1.000.000,25)&lt;/P&gt;

&lt;P&gt;How can I change that at search time ? Is it possible ?&lt;/P&gt;

&lt;P&gt;I have tried to use "eval nn=tonumber(variable) but it can't convert a number in the format before mentioned (1.000.000,25)&lt;/P&gt;

&lt;P&gt;Cheers&lt;BR /&gt;
Arturo&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2012 20:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92585#M23895</guid>
      <dc:creator>arturo</dc:creator>
      <dc:date>2012-03-14T20:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal : how to use "," vs "." ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92586#M23896</link>
      <description>&lt;P&gt;There is probably a more elegant way, but:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| eval var = replace(var, ",", ".") | eval var = replace(var, "\.([^\.]+)$", ",\1")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It would probably be easiest to make this in to a macro for reuse.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2012 21:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92586#M23896</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-03-14T21:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal : how to use "," vs "." ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92587#M23897</link>
      <description>&lt;P&gt;It's probably better to eliminate the separating dots before replacing commas.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval nn=tonumber(replace(replace(variable,"\.",""),",",".")) | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Mar 2012 10:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92587#M23897</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-03-15T10:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal : how to use "," vs "." ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92588#M23898</link>
      <description>&lt;P&gt;Thanks guys !!!!!! ... great ideas indeed !!!!!!!!!!!&lt;/P&gt;

&lt;P&gt;Question : are there any "permanent/faster" ways to make this "standard" for numeric quantities the "standard" for a customer installation ? &lt;/P&gt;

&lt;P&gt;I was thinking that something Just like &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Configurecharactersetencoding"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Configurecharactersetencoding&lt;/A&gt; should exist "built in" in Splunk to make him aware of other standards ... maybe at index time ?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 12:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92588#M23898</guid>
      <dc:creator>arturo</dc:creator>
      <dc:date>2012-03-15T12:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal : how to use "," vs "." ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92589#M23899</link>
      <description>&lt;P&gt;Transforming something like this at index time is probably a bad idea. Even the field extraction happen at search time. An enhancement that might be useful is a locale-aware string-to-number conversion for eval.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 12:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92589#M23899</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-03-15T12:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal : how to use "," vs "." ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92590#M23900</link>
      <description>&lt;P&gt;Is that locale-aware "string-to-number" convertion option available ?&lt;/P&gt;

&lt;P&gt;Any pointers ?&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2012 20:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92590#M23900</guid>
      <dc:creator>arturo</dc:creator>
      <dc:date>2012-05-15T20:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal : how to use "," vs "." ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92591#M23901</link>
      <description>&lt;P&gt;No, not atm.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 16:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-how-to-use-quot-quot-vs-quot-quot/m-p/92591#M23901</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-05-16T16:07:44Z</dc:date>
    </item>
  </channel>
</rss>

