<?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 How to use thousand comma separator for chart command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-thousand-comma-separator-for-chart-command/m-p/593603#M206613</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;below is my query to use thousand comma separator:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|inputlookup abc.csv | chart sum(field1) as field1 by field2, field3| addtotals | fieldformat/eval = tostring(field1, "commas").&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the result I am not getting commas in the field1 value. If I alter my query with only 1 field -&amp;gt; field2 or field3 then I get expected result. but I want sum of field by field 2 and field 3.&lt;/P&gt;
&lt;P&gt;can someone help me with this issue?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;ND.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2022 15:17:48 GMT</pubDate>
    <dc:creator>ND</dc:creator>
    <dc:date>2022-04-13T15:17:48Z</dc:date>
    <item>
      <title>How to use thousand comma separator for chart command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-thousand-comma-separator-for-chart-command/m-p/593603#M206613</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;below is my query to use thousand comma separator:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|inputlookup abc.csv | chart sum(field1) as field1 by field2, field3| addtotals | fieldformat/eval = tostring(field1, "commas").&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the result I am not getting commas in the field1 value. If I alter my query with only 1 field -&amp;gt; field2 or field3 then I get expected result. but I want sum of field by field 2 and field 3.&lt;/P&gt;
&lt;P&gt;can someone help me with this issue?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;ND.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 15:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-thousand-comma-separator-for-chart-command/m-p/593603#M206613</guid>
      <dc:creator>ND</dc:creator>
      <dc:date>2022-04-13T15:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use thousand comma separator for chart command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-thousand-comma-separator-for-chart-command/m-p/593635#M206625</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226776"&gt;@ND&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup abc.csv 
| chart sum(field1) as field1 by field2, field3 
| addtotals 
| eval field1 = tostring(field1, "commas") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For further help can you please share sample output of below search?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup abc.csv 
| chart sum(field1) as field1 by field2, field3 
| addtotals 
 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 15:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-thousand-comma-separator-for-chart-command/m-p/593635#M206625</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-04-13T15:59:30Z</dc:date>
    </item>
  </channel>
</rss>

