<?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: Replace comma with the dot in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Replace-comma-with-the-dot/m-p/101576#M26239</link>
    <description>&lt;P&gt;Perfect! This does the trick!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2013 15:44:23 GMT</pubDate>
    <dc:creator>lrudolph</dc:creator>
    <dc:date>2013-10-16T15:44:23Z</dc:date>
    <item>
      <title>Replace comma with the dot</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-comma-with-the-dot/m-p/101573#M26236</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have evaluated a field count with value 10000. Then I converted it with fieldformat to include a thousand separator to display it on a single value panel. Now I want to replace the comma with a dot, because we are in Europe. How can I do that?&lt;/P&gt;

&lt;P&gt;I already tried this: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;searchstring | stats count |&lt;BR /&gt;
fieldformat count=tostring(count,&lt;BR /&gt;
"commas") | rex field=count mode=sed&lt;BR /&gt;
"s/\,/./g"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The result makes no difference - it's still as if I didn't use the rex-command.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Leo&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 12:36:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-comma-with-the-dot/m-p/101573#M26236</guid>
      <dc:creator>lrudolph</dc:creator>
      <dc:date>2013-10-16T12:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replace comma with the dot</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-comma-with-the-dot/m-p/101574#M26237</link>
      <description>&lt;P&gt;An older post suggests that the "commas" operator is locale specific, i.e. it should use decimals for Europe...&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/41636/tostring-commas-and-locale-specific-separators"&gt;http://answers.splunk.com/answers/41636/tostring-commas-and-locale-specific-separators&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-comma-with-the-dot/m-p/101574#M26237</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-10-16T13:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace comma with the dot</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-comma-with-the-dot/m-p/101575#M26238</link>
      <description>&lt;P&gt;I agree that fieldformat doesn't seem to play nice. I wonder if its execution is "delayed" in that the formatting rules it dictates are only applied late (at display level). In any event, I was able to get the desired effect with this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;searchstring | stats count | eval count=tostring(count, "commas") | rex field=count mode=sed "s/,/./g"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The other answers post quoted by @lukejadamec says that commas should be locale-specific, but my own experimentation suggests that it is not. I've filed a case.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 13:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-comma-with-the-dot/m-p/101575#M26238</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-10-16T13:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Replace comma with the dot</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-comma-with-the-dot/m-p/101576#M26239</link>
      <description>&lt;P&gt;Perfect! This does the trick!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 15:44:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-comma-with-the-dot/m-p/101576#M26239</guid>
      <dc:creator>lrudolph</dc:creator>
      <dc:date>2013-10-16T15:44:23Z</dc:date>
    </item>
  </channel>
</rss>

