<?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: help on stats command for retrieving _time in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548985#M5658</link>
    <description>&lt;P&gt;Actually, I have 3 columns&lt;/P&gt;&lt;P&gt;"Ticket Number"&amp;nbsp; "Resolver group"&amp;nbsp; "Count"&lt;/P&gt;&lt;P&gt;AAAAAAAAAAA&amp;nbsp; &amp;nbsp; &amp;nbsp;123&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; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;456&lt;/P&gt;&lt;P&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;789&lt;/P&gt;&lt;P&gt;As you can see, a ticket number can have different resolver group&lt;/P&gt;&lt;P&gt;In front of each Resolver group I would like to have the timestamp of the event because if there is for example 3 resolver group it means that 3 events exists&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 16:34:47 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2021-04-22T16:34:47Z</dc:date>
    <item>
      <title>help on stats command for retrieving _time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548927#M5648</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;In the stats command below, i try to retrieve the _time values (which is the Splunk timestamp) corresponding to the "Resolver group" column&lt;/P&gt;&lt;P&gt;I succeed to do this replacing the "by ticket_id" clause by an "assignment_group_name" clause but I need to keel my "by ticket_id" clause&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(assignment_group_name) as "Resolver group", dc(assignment_group_name) as "Number of assignment group" by ticket_id &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I tried something like this, but I have just one timestamp&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats latest(_time) as _time, values(assignment_group_name) as "Resolver group", dc(assignment_group_name) as "Number of assignment group" by ticket_id &lt;/LI-CODE&gt;&lt;P&gt;Could you help please?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 10:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548927#M5648</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-04-22T10:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: help on stats command for retrieving _time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548938#M5649</link>
      <description>&lt;P&gt;I am not entirely sure what you are trying to achieve - perhaps some sample data and an example of what you are hoping to see would help. Having said that, have you tried having more than one dimension to the by clause e.g.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats latest(_time) as _time by ticket_id assignment_group_name&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Apr 2021 11:33:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548938#M5649</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-22T11:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: help on stats command for retrieving _time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548974#M5655</link>
      <description>&lt;P&gt;not good&lt;/P&gt;&lt;P&gt;a same ticket_id has many assinment group with many different times&lt;/P&gt;&lt;P&gt;that's the reason why we can use "by ticket_id" like explained&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 14:25:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548974#M5655</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-04-22T14:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: help on stats command for retrieving _time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548975#M5656</link>
      <description>&lt;P&gt;&lt;SPAN&gt;perhaps some sample data and an example of what you are hoping to see would help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 14:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548975#M5656</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-22T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: help on stats command for retrieving _time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548985#M5658</link>
      <description>&lt;P&gt;Actually, I have 3 columns&lt;/P&gt;&lt;P&gt;"Ticket Number"&amp;nbsp; "Resolver group"&amp;nbsp; "Count"&lt;/P&gt;&lt;P&gt;AAAAAAAAAAA&amp;nbsp; &amp;nbsp; &amp;nbsp;123&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; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;456&lt;/P&gt;&lt;P&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;789&lt;/P&gt;&lt;P&gt;As you can see, a ticket number can have different resolver group&lt;/P&gt;&lt;P&gt;In front of each Resolver group I would like to have the timestamp of the event because if there is for example 3 resolver group it means that 3 events exists&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 16:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548985#M5658</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2021-04-22T16:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: help on stats command for retrieving _time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548992#M5659</link>
      <description>&lt;P&gt;Can the same resolver group appear in your events for the same ticket number? If so, which time do you want to keep, or do you want all the events (with time and associated resolver group)?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 16:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/help-on-stats-command-for-retrieving-time/m-p/548992#M5659</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-22T16:51:35Z</dc:date>
    </item>
  </channel>
</rss>

