<?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 keep the number on the right side after changing the commas with space to match canadian number format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484224#M135525</link>
    <description>&lt;P&gt;I am not aware of one.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 18:20:45 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-02-28T18:20:45Z</dc:date>
    <item>
      <title>How to keep the number on the right side after changing the commas with space to match canadian number format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484221#M135522</link>
      <description>&lt;P&gt;Hello Splunker!&lt;/P&gt;

&lt;P&gt;I added the "tostring + commas" to a number to get the thousand separator.  Work's fine.&lt;BR /&gt;&lt;BR /&gt;
The problem is when I do the rex command to replace the commas with a space to match the canadian format number, my numbers get shifted on the left side.  Is there another way to do so, so I can keep my number on the right side?  See code below:&lt;/P&gt;

&lt;P&gt;| eval sum_totrows=tostring(sum_totalrows,"commas")&lt;BR /&gt;
| rex field=sum_totrows mode=sed "s/,/ /g"&lt;/P&gt;

&lt;P&gt;Result:&lt;BR /&gt;
407 930&lt;BR /&gt;
119&lt;BR /&gt;
14 131&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484221#M135522</guid>
      <dc:creator>usernamejpblais</dc:creator>
      <dc:date>2020-09-30T04:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the number on the right side after changing the commas with space to match canadian number format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484222#M135523</link>
      <description>&lt;P&gt;There is justification setting in Splunk.  Numbers are automatically right-justified and strings are left-justified (at least in the US locale).  Putting spaces in numbers converts them to strings so that is why they are left-justified.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484222#M135523</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-02-28T17:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the number on the right side after changing the commas with space to match canadian number format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484223#M135524</link>
      <description>&lt;P&gt;Ok I understand, so is there a way to configure the setting to change the thousand separator from commas to space?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484223#M135524</guid>
      <dc:creator>usernamejpblais</dc:creator>
      <dc:date>2020-02-28T17:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the number on the right side after changing the commas with space to match canadian number format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484224#M135525</link>
      <description>&lt;P&gt;I am not aware of one.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 18:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484224#M135525</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-02-28T18:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the number on the right side after changing the commas with space to match canadian number format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484225#M135526</link>
      <description>&lt;P&gt;&lt;A href="https://www.btb.termiumplus.gc.ca/tcdnstyl-chap?lang=eng&amp;amp;lettr=chapsect5&amp;amp;info0=5"&gt;Canadian style&lt;/A&gt;&lt;BR /&gt;
that's interesting&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval sum_totrows=replace(tostring(sum_totalrows,"commas"),","," ")&lt;/CODE&gt;&lt;BR /&gt;
one liner.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 18:39:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484225#M135526</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-28T18:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the number on the right side after changing the commas with space to match canadian number format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484226#M135527</link>
      <description>&lt;P&gt;I like that one liner but I have the same problem, number shift to the left. &lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 18:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484226#M135527</guid>
      <dc:creator>usernamejpblais</dc:creator>
      <dc:date>2020-02-28T18:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the number on the right side after changing the commas with space to match canadian number format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484227#M135528</link>
      <description>&lt;P&gt;That's exactly what @richgalloway says. &lt;BR /&gt;
Creating dashboard can use js and css, maybe we can.&lt;BR /&gt;
but I don't know. ask another experts.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 19:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-the-number-on-the-right-side-after-changing-the/m-p/484227#M135528</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-28T19:35:07Z</dc:date>
    </item>
  </channel>
</rss>

