<?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 get count ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count/m-p/645887#M223620</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244504"&gt;@MG&lt;/a&gt; , you can use eventstats instead of stats for that as in &lt;FONT face="courier new,courier"&gt;| eventstats count by idx.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 10:31:28 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2023-06-06T10:31:28Z</dc:date>
    <item>
      <title>How to get count ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count/m-p/645885#M223618</link>
      <description>&lt;P&gt;I have a table in splunk with&amp;nbsp; columns&lt;BR /&gt;|table _time idx Event_count IsOutlier Actual_outlier atf_hour_of_day atf_day_of_week lowerBound upperBound Email_Alert X X1 outlier_high_index outlier_low_index&lt;BR /&gt;&lt;BR /&gt;I need to check how many times an index appears in the idx column. I can use |stats count by idx. It will give only the columns idx and count. But I need all the other columns as well..&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 10:21:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count/m-p/645885#M223618</guid>
      <dc:creator>MG</dc:creator>
      <dc:date>2023-06-06T10:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get count ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count/m-p/645887#M223620</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244504"&gt;@MG&lt;/a&gt; , you can use eventstats instead of stats for that as in &lt;FONT face="courier new,courier"&gt;| eventstats count by idx.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 10:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count/m-p/645887#M223620</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2023-06-06T10:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get count ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count/m-p/645888#M223621</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244504"&gt;@MG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to use the values option in the stats command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats 
   earliest(_time) AS _time
   values(Event_count) AS Event_count 
   values(IsOutlier) AS IsOutlier 
   values(Actual_outlier) AS Actual_outlier 
   values(atf_hour_of_day) AS atf_hour_of_day 
   values(atf_day_of_week) AS atf_day_of_week 
   values(lowerBound) AS lowerBound 
   values(upperBound) AS upperBound 
   values(Email_Alert) AS Email_Alert 
   values(X) AS X
   values(X1) AS X1
   values(outlier_high_index) AS outlier_high_index 
   values(outlier_low_inde) AS outlier_low_index
   count
   BY idx
| table _time idx Event_count IsOutlier Actual_outlier atf_hour_of_day atf_day_of_week lowerBound upperBound Email_Alert X X1 outlier_high_index outlier_low_index count&lt;/LI-CODE&gt;&lt;P&gt;In this way you aggregate events grouped by idx, but you could have more values for each field.&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 10:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count/m-p/645888#M223621</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-06T10:34:16Z</dc:date>
    </item>
  </channel>
</rss>

