<?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: To count the filed with different time range in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701323#M237904</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The query is working, but the result is not as expected. The timeframe is also not returning the correct results. I need the highest count for the past 30 days, with the country having the highest count appearing first, followed by other countries in descending order.&lt;BR /&gt;&lt;BR /&gt;The below is the current result.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parthiban_0-1728403827452.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33001iABCB5F8D2F39DEFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parthiban_0-1728403827452.png" alt="parthiban_0-1728403827452.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 16:19:36 GMT</pubDate>
    <dc:creator>parthiban</dc:creator>
    <dc:date>2024-10-08T16:19:36Z</dc:date>
    <item>
      <title>To count the filed with different time range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701277#M237892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have events that having multiple countries... I want to count the country field and with different time range. It is need to sort by highest country to lowest.&lt;/P&gt;&lt;P&gt;EX&amp;nbsp; &amp;nbsp;Country&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Last 24h&amp;nbsp; &amp;nbsp; &amp;nbsp;Last 30 days&amp;nbsp; &amp;nbsp; &amp;nbsp;Last 90 days&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;US&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Aus&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 80&lt;BR /&gt;&lt;BR /&gt;I need query kindly assist me.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 10:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701277#M237892</guid>
      <dc:creator>parthiban</dc:creator>
      <dc:date>2024-10-08T10:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: To count the filed with different time range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701288#M237896</link>
      <description>&lt;LI-CODE lang="markup"&gt;| bin _time span=1d
| stats count(eval(_time&amp;gt;=relative_time(now(),"@d-1d"))) as 24hCount  count(eval(_time&amp;gt;=relative_time(now(),"@d-30d"))) as 30dCount count(eval(_time&amp;gt;=relative_time(now(),"@d-90d"))) as 90dCount by Country&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Oct 2024 12:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701288#M237896</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-08T12:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: To count the filed with different time range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701323#M237904</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The query is working, but the result is not as expected. The timeframe is also not returning the correct results. I need the highest count for the past 30 days, with the country having the highest count appearing first, followed by other countries in descending order.&lt;BR /&gt;&lt;BR /&gt;The below is the current result.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parthiban_0-1728403827452.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33001iABCB5F8D2F39DEFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parthiban_0-1728403827452.png" alt="parthiban_0-1728403827452.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 16:19:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701323#M237904</guid>
      <dc:creator>parthiban</dc:creator>
      <dc:date>2024-10-08T16:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: To count the filed with different time range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701344#M237908</link>
      <description>&lt;P&gt;Use the "sort" command, Luke!&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sort" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sort&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 19:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701344#M237908</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-08T19:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: To count the filed with different time range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701371#M237910</link>
      <description>&lt;P&gt;So how would this look? You can only sort in an particular order of precedence i.e. 30days first then if they are equal, 90days, then if still equal 1 day, you know that right?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 22:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701371#M237910</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-08T22:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: To count the filed with different time range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701502#M237952</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I made small changes in given query. It is working as expected.. Thanks for your support&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 05:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-count-the-filed-with-different-time-range/m-p/701502#M237952</guid>
      <dc:creator>parthiban</dc:creator>
      <dc:date>2024-10-10T05:52:18Z</dc:date>
    </item>
  </channel>
</rss>

