<?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 Format Result set Numbers in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Format-Result-set-Numbers/m-p/23378#M4171</link>
    <description>&lt;P&gt;I have the following result set:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                       Visits
Sunday, November 27, 2011   667044
Saturday, November 26, 2011 659234
Sunday, November 20, 2011   648686
Saturday, October 29, 2011  640808
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to format the Visits' number as follow?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                       Visits
Sunday, November 27, 2011   667,044
Saturday, November 26, 2011 659,234
Sunday, November 20, 2011   648,686
Saturday, October 29, 2011  640,808
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2011 15:13:07 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2011-11-28T15:13:07Z</dc:date>
    <item>
      <title>Format Result set Numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-Result-set-Numbers/m-p/23378#M4171</link>
      <description>&lt;P&gt;I have the following result set:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                       Visits
Sunday, November 27, 2011   667044
Saturday, November 26, 2011 659234
Sunday, November 20, 2011   648686
Saturday, October 29, 2011  640808
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to format the Visits' number as follow?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                       Visits
Sunday, November 27, 2011   667,044
Saturday, November 26, 2011 659,234
Sunday, November 20, 2011   648,686
Saturday, October 29, 2011  640,808
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-Result-set-Numbers/m-p/23378#M4171</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2011-11-28T15:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Format Result set Numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-Result-set-Numbers/m-p/23379#M4172</link>
      <description>&lt;P&gt;You can use the fieldformat command to accomplish this. &lt;/P&gt;

&lt;P&gt;Try this in search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| fieldformat Visits = tostring(Visits, "commas") | table _time, Visits
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is a link to more information:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.4/SearchReference/Fieldformat"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.4/SearchReference/Fieldformat&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2011 16:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-Result-set-Numbers/m-p/23379#M4172</guid>
      <dc:creator>tgow</dc:creator>
      <dc:date>2011-11-28T16:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Format Result set Numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-Result-set-Numbers/m-p/23380#M4173</link>
      <description>&lt;P&gt;It worked great.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2011 16:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-Result-set-Numbers/m-p/23380#M4173</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2011-11-28T16:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Format Result set Numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-Result-set-Numbers/m-p/23381#M4174</link>
      <description>&lt;P&gt;Hi everybody!&lt;BR /&gt;
This solution is great, but if you change column values to string you'll lose the ability to automatically calculate column totals: such totals will be wrong since they'll ignore every value containing commas.&lt;BR /&gt;
Is there a way to apply this formatting without invalidating "|addcoltotals" functionalities?&lt;/P&gt;

&lt;P&gt;Thank you very much in advance, &lt;BR /&gt;
Matteo&lt;/P&gt;

&lt;P&gt;-- EDIT --&lt;BR /&gt;
SOLUTION is to pospone | eval tostring(...,"commas") to |addcoltotals: then everything is working fine!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2014 10:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-Result-set-Numbers/m-p/23381#M4174</guid>
      <dc:creator>banchio</dc:creator>
      <dc:date>2014-12-18T10:51:21Z</dc:date>
    </item>
  </channel>
</rss>

