<?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 Add commas to Exchange Table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-commas-to-Exchange-Table/m-p/61908#M180178</link>
    <description>&lt;P&gt;Splunkers,&lt;/P&gt;

&lt;P&gt;I have been trying to add commas to all the default charts on the Exchange app. A few particular searches are giving me issues. I usually just use "eval count=tostring(count, "commas")" and it works like a charm. I am still trying to understand how the following search works and how to add commas to it. Any ideas?&lt;/P&gt;

&lt;P&gt;This is the Environment Report - Mailboxes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="msexchange-mailbox-usage" User="*"|dedup User|eval mailbox=1|eval mailbox200m=if(TotalItemSize&amp;gt;200000000,1,0)|eval mailbox500m=if(TotalItemSize&amp;gt;500000000,1,0)|eval mailbox1G=if(TotalItemSize&amp;gt;1000000000,1,0)|table User,TotalItemSize,mailbox,mailbox200m,mailbox500m,mailbox1G|addcoltotals labelfield=User label=Totals|search User=Totals|eval avgmailbox=round(TotalItemSize/mailbox)|table mailbox,mailbox200m,mailbox500m,mailbox1G,avgmailbox|rename mailbox as "# Mailboxes", mailbox200m as "# Mailboxes over 200Mb", mailbox500m as "# Mailboxes over 500Mb", mailbox1G as "# Mailboxes over 1Gb", avgmailbox as "Average Mailbox Size"|transpose 5|append [ search eventtype="msexchange-mailbox-usage" User="*"|stats max(TotalItemSize) as maxmailbox|eval column="Maximum Mailbox Size"|eval "row 1"=maxmailbox|table column,"row 1"]|rename column as "Field","row 1" as "Value"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance for any help with this.&lt;BR /&gt;
I-Man&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2013 21:23:48 GMT</pubDate>
    <dc:creator>I-Man</dc:creator>
    <dc:date>2013-06-12T21:23:48Z</dc:date>
    <item>
      <title>Add commas to Exchange Table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-commas-to-Exchange-Table/m-p/61908#M180178</link>
      <description>&lt;P&gt;Splunkers,&lt;/P&gt;

&lt;P&gt;I have been trying to add commas to all the default charts on the Exchange app. A few particular searches are giving me issues. I usually just use "eval count=tostring(count, "commas")" and it works like a charm. I am still trying to understand how the following search works and how to add commas to it. Any ideas?&lt;/P&gt;

&lt;P&gt;This is the Environment Report - Mailboxes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="msexchange-mailbox-usage" User="*"|dedup User|eval mailbox=1|eval mailbox200m=if(TotalItemSize&amp;gt;200000000,1,0)|eval mailbox500m=if(TotalItemSize&amp;gt;500000000,1,0)|eval mailbox1G=if(TotalItemSize&amp;gt;1000000000,1,0)|table User,TotalItemSize,mailbox,mailbox200m,mailbox500m,mailbox1G|addcoltotals labelfield=User label=Totals|search User=Totals|eval avgmailbox=round(TotalItemSize/mailbox)|table mailbox,mailbox200m,mailbox500m,mailbox1G,avgmailbox|rename mailbox as "# Mailboxes", mailbox200m as "# Mailboxes over 200Mb", mailbox500m as "# Mailboxes over 500Mb", mailbox1G as "# Mailboxes over 1Gb", avgmailbox as "Average Mailbox Size"|transpose 5|append [ search eventtype="msexchange-mailbox-usage" User="*"|stats max(TotalItemSize) as maxmailbox|eval column="Maximum Mailbox Size"|eval "row 1"=maxmailbox|table column,"row 1"]|rename column as "Field","row 1" as "Value"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance for any help with this.&lt;BR /&gt;
I-Man&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2013 21:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-commas-to-Exchange-Table/m-p/61908#M180178</guid>
      <dc:creator>I-Man</dc:creator>
      <dc:date>2013-06-12T21:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add commas to Exchange Table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-commas-to-Exchange-Table/m-p/61909#M180179</link>
      <description>&lt;P&gt;Try using fieldformat at the end of the search string. Example below - &lt;BR /&gt;
eventtype="msexchange-mailbox-usage" User="&lt;EM&gt;"|dedup User|eval mailbox=1|eval mailbox200m=if(TotalItemSize&amp;gt;200000000,1,0)|eval mailbox500m=if(TotalItemSize&amp;gt;500000000,1,0)|eval mailbox1G=if(TotalItemSize&amp;gt;1000000000,1,0)|table User,TotalItemSize,mailbox,mailbox200m,mailbox500m,mailbox1G|addcoltotals labelfield=User label=Totals|search User=Totals|eval avgmailbox=round(TotalItemSize/mailbox)|table mailbox,mailbox200m,mailbox500m,mailbox1G,avgmailbox|rename mailbox as "# Mailboxes", mailbox200m as "# Mailboxes over 200Mb", mailbox500m as "# Mailboxes over 500Mb", mailbox1G as "# Mailboxes over 1Gb", avgmailbox as "Average Mailbox Size"|transpose 5|append [ search eventtype="msexchange-mailbox-usage" User="&lt;/EM&gt;"|stats max(TotalItemSize) as maxmailbox|eval column="Maximum Mailbox Size"|eval "row 1"=maxmailbox|table column,"row 1"]|rename column as "Field","row 1" as "Value" | fieldformat Value=tostring(Value,"commas")&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2013 21:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-commas-to-Exchange-Table/m-p/61909#M180179</guid>
      <dc:creator>skylasam_splunk</dc:creator>
      <dc:date>2013-06-12T21:42:10Z</dc:date>
    </item>
  </channel>
</rss>

