<?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 use of Group by on the Event Number column to get the latest result by EventTime? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436756#M172583</link>
    <description>&lt;P&gt;Just add &lt;CODE&gt;| fields - EventNumber&lt;/CODE&gt; to the end of your query.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 13:30:41 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2019-03-11T13:30:41Z</dc:date>
    <item>
      <title>How to use of Group by on the Event Number column to get the latest result by EventTime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436753#M172580</link>
      <description>&lt;P&gt;I have a table like below in Splunk&lt;BR /&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/6677i0FC72ABA47C6075F/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;I want to apply a group by on Event Number col and want to get the top(latest) result by EventTime like below&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/6678iE74144171ED592EA/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;I am new to Splunk.Can any one suggest me how to achieve it using Splunk search query &lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436753#M172580</guid>
      <dc:creator>nilanjankc</dc:creator>
      <dc:date>2019-03-11T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use of Group by on the Event Number column to get the latest result by EventTime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436754#M172581</link>
      <description>&lt;P&gt;Try the following. It parses the EventTime and assigns it to _time, so you can apply stats function latest() to get the latest values by EventNumber.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...search that gets you to that data...
| eval _time = strptime(EventTime, "%e/%m/%Y %H:%M")
| stats latest(EventName) as EventName latest(EventTime) as EventTime by EventNumber
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Mar 2019 12:07:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436754#M172581</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-03-11T12:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use of Group by on the Event Number column to get the latest result by EventTime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436755#M172582</link>
      <description>&lt;P&gt;Hi Frank &lt;/P&gt;

&lt;P&gt;Thank you for your quick reply,is there any way that we can hide this EventNumber from displaying as Column but still using it in calculation&lt;/P&gt;

&lt;P&gt;regards&lt;BR /&gt;
Nilanjan  &lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 13:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436755#M172582</guid>
      <dc:creator>nilanjankc</dc:creator>
      <dc:date>2019-03-11T13:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use of Group by on the Event Number column to get the latest result by EventTime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436756#M172583</link>
      <description>&lt;P&gt;Just add &lt;CODE&gt;| fields - EventNumber&lt;/CODE&gt; to the end of your query.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 13:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436756#M172583</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-03-11T13:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use of Group by on the Event Number column to get the latest result by EventTime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436757#M172584</link>
      <description>&lt;P&gt;Hi Frank &lt;BR /&gt;
Your solution works like a charm,just a question, from where I can learn more about Splunk query language. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 13:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436757#M172584</guid>
      <dc:creator>nilanjankc</dc:creator>
      <dc:date>2019-03-11T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use of Group by on the Event Number column to get the latest result by EventTime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436758#M172585</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/WhatsInThisManual"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/WhatsInThisManual&lt;/A&gt; is a very useful resource.&lt;/P&gt;

&lt;P&gt;Have you taken the Splunk Fundamentals 1 training, if not, that is also a good starting point. And if you have access to trainings, there are several more advanced trainings on the topic as well.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 13:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436758#M172585</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-03-11T13:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use of Group by on the Event Number column to get the latest result by EventTime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436759#M172586</link>
      <description>&lt;P&gt;Thank you for your guidance.I started Splunk Fundamentals 1.Happy learning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  &lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 14:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-of-Group-by-on-the-Event-Number-column-to-get-the/m-p/436759#M172586</guid>
      <dc:creator>nilanjankc</dc:creator>
      <dc:date>2019-03-11T14:46:04Z</dc:date>
    </item>
  </channel>
</rss>

