<?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: Grouping _time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491172#M137133</link>
    <description>&lt;P&gt;use stats count:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| loadjob savedsearch="myquery"
| where (strftime(_time, "%Y-%m-%d") &amp;gt;= "2020-02-26") AND (strftime(_time, "%Y-%m-%d") &amp;lt;= "2020-03-03") and STEP=="Click"
| bucket _time span=1d
|stats min(_time) as _time by MESSAGE
|where MESSAGE = "337668c2-162c-4f4f-bda9-92f7816f2752" OR MESSAGE = "46095117-4dcb-4ebc-9906-8c23f1a1a26b" OR MESSAGE = "60eb62a4-c54a-4fc0-9aaa-17726ff62929" OR MESSAGE = "8b5e055c-17ab-4135-8b90-1fbc65032792"
| stats count by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Mar 2020 10:51:52 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-03-12T10:51:52Z</dc:date>
    <item>
      <title>Grouping _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491171#M137132</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have this query &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| loadjob savedsearch="myquery"
  | where (strftime(_time, "%Y-%m-%d") &amp;gt;= "2020-02-26") AND (strftime(_time, "%Y-%m-%d") &amp;lt;= "2020-03-03") and STEP=="Click"
  | bucket _time span=1d
  |stats min(_time) as _time by MESSAGE
  |where MESSAGE = "337668c2-162c-4f4f-bda9-92f7816f2752" OR MESSAGE = "46095117-4dcb-4ebc-9906-8c23f1a1a26b" OR MESSAGE = "60eb62a4-c54a-4fc0-9aaa-17726ff62929" OR MESSAGE = "8b5e055c-17ab-4135-8b90-1fbc65032792"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now i want to count the MESSAGE by _time&lt;/P&gt;

&lt;P&gt;This is what i have as result &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8527iC67A1A4303A6F561/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;And this is what i want&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8528iAE1BA0DE282F15D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks for help&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 10:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491171#M137132</guid>
      <dc:creator>tahasefiani</dc:creator>
      <dc:date>2020-03-12T10:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491172#M137133</link>
      <description>&lt;P&gt;use stats count:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| loadjob savedsearch="myquery"
| where (strftime(_time, "%Y-%m-%d") &amp;gt;= "2020-02-26") AND (strftime(_time, "%Y-%m-%d") &amp;lt;= "2020-03-03") and STEP=="Click"
| bucket _time span=1d
|stats min(_time) as _time by MESSAGE
|where MESSAGE = "337668c2-162c-4f4f-bda9-92f7816f2752" OR MESSAGE = "46095117-4dcb-4ebc-9906-8c23f1a1a26b" OR MESSAGE = "60eb62a4-c54a-4fc0-9aaa-17726ff62929" OR MESSAGE = "8b5e055c-17ab-4135-8b90-1fbc65032792"
| stats count by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Mar 2020 10:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491172#M137133</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-12T10:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491173#M137134</link>
      <description>&lt;P&gt;@manjunathmeti the problème is  that i can't do my join on _time. DO you have a solution to that?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491173#M137134</guid>
      <dc:creator>tahasefiani</dc:creator>
      <dc:date>2020-03-12T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491174#M137135</link>
      <description>&lt;P&gt;Convert _time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| loadjob savedsearch="myquery"
| where (strftime(_time, "%Y-%m-%d") &amp;gt;= "2020-02-26") AND (strftime(_time, "%Y-%m-%d") &amp;lt;= "2020-03-03") and STEP=="Click"
| bucket _time span=1d
| stats min(_time) as _time by MESSAGE
| where MESSAGE = "337668c2-162c-4f4f-bda9-92f7816f2752" OR MESSAGE = "46095117-4dcb-4ebc-9906-8c23f1a1a26b" OR MESSAGE = "60eb62a4-c54a-4fc0-9aaa-17726ff62929" OR MESSAGE = "8b5e055c-17ab-4135-8b90-1fbc65032792"
| eval time=strftime(_time, "%d/%m/%Y")
| stats count by time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491174#M137135</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-12T13:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491175#M137136</link>
      <description>&lt;P&gt;@manjunathmeti junathm it's does't work as a timechart&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 16:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491175#M137136</guid>
      <dc:creator>tahasefiani</dc:creator>
      <dc:date>2020-03-12T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491176#M137137</link>
      <description>&lt;P&gt;can you comment your whole search query?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 16:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-time/m-p/491176#M137137</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-13T16:17:11Z</dc:date>
    </item>
  </channel>
</rss>

