<?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 Numeric Formatting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Numeric-Formatting/m-p/148379#M41501</link>
    <description>&lt;P&gt;Hi, In search time I make a field "eval values ​​= substr (_raw, 82.15)" divided by 100 "eval value = round ((value / 100), 2" the splunk considers it a number and leave with two decimal places in 00.00 format and then I add to display "sum (amount) AS TOTAL_VALOR".&lt;BR /&gt;
When the result is too large so it appears 211712.76, so I used the command comas "| fieldformat TOTAL_VALOR =" $ "tostring (TOTAL_VALOR," commas ")" so it would appear so $ 211,712.76.&lt;BR /&gt;
But what I want is for it to appear in the Brazilian standard R $ 211.712,76.&lt;BR /&gt;
I do not know where I'm going wrong, I am user queries, do not quite understand the setup, I have to change or install something so that he understands the standard Portuguese / Brazil?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:46:23 GMT</pubDate>
    <dc:creator>mirianseffrin</dc:creator>
    <dc:date>2020-09-28T17:46:23Z</dc:date>
    <item>
      <title>Numeric Formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Numeric-Formatting/m-p/148379#M41501</link>
      <description>&lt;P&gt;Hi, In search time I make a field "eval values ​​= substr (_raw, 82.15)" divided by 100 "eval value = round ((value / 100), 2" the splunk considers it a number and leave with two decimal places in 00.00 format and then I add to display "sum (amount) AS TOTAL_VALOR".&lt;BR /&gt;
When the result is too large so it appears 211712.76, so I used the command comas "| fieldformat TOTAL_VALOR =" $ "tostring (TOTAL_VALOR," commas ")" so it would appear so $ 211,712.76.&lt;BR /&gt;
But what I want is for it to appear in the Brazilian standard R $ 211.712,76.&lt;BR /&gt;
I do not know where I'm going wrong, I am user queries, do not quite understand the setup, I have to change or install something so that he understands the standard Portuguese / Brazil?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Numeric-Formatting/m-p/148379#M41501</guid>
      <dc:creator>mirianseffrin</dc:creator>
      <dc:date>2020-09-28T17:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric Formatting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Numeric-Formatting/m-p/148380#M41502</link>
      <description>&lt;P&gt;Sadly &lt;CODE&gt;tostring&lt;/CODE&gt; does not understand locale.&lt;/P&gt;

&lt;P&gt;But you could do this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| fieldformat TOTAL_VALOR = tostring (TOTAL_VALOR," commas ")
| eval TOTAL_VALOR = replace(TOTAL_VALOR,"\,",";")
| eval TOTAL_VALOR = replace(TOTAL_VALOR,"\.",",")
| eval TOTAL_VALOR = replace(TOTAL_VALOR,"\;",".")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's a pain, I know, but you could put it in a macro and reuse it...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2014 00:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Numeric-Formatting/m-p/148380#M41502</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-10-02T00:18:41Z</dc:date>
    </item>
  </channel>
</rss>

