<?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 do I find the latest time project name in each group? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-latest-time-project-name-in-each-group/m-p/433741#M167058</link>
    <description>&lt;P&gt;no,no,no ,the result of this way is &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/5952iEFF5C0D31C6FEFC3/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 need latest time project name in each group. and there is only one data in each group&lt;/P&gt;</description>
    <pubDate>Sun, 14 Oct 2018 02:57:01 GMT</pubDate>
    <dc:creator>flzhang132</dc:creator>
    <dc:date>2018-10-14T02:57:01Z</dc:date>
    <item>
      <title>How do I find the latest time project name in each group?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-latest-time-project-name-in-each-group/m-p/433739#M167056</link>
      <description>&lt;P&gt;I want to group by virtual machine and then find the latest time project name in each group. How would I  implement this? &lt;/P&gt;

&lt;P&gt;thanks!&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/5953i543D01C3899776B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Oct 2018 07:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-latest-time-project-name-in-each-group/m-p/433739#M167056</guid>
      <dc:creator>flzhang132</dc:creator>
      <dc:date>2018-10-13T07:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the latest time project name in each group?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-latest-time-project-name-in-each-group/m-p/433740#M167057</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats latest(time) by vm_id project
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Oct 2018 08:13:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-latest-time-project-name-in-each-group/m-p/433740#M167057</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-13T08:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the latest time project name in each group?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-latest-time-project-name-in-each-group/m-p/433741#M167058</link>
      <description>&lt;P&gt;no,no,no ,the result of this way is &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/5952iEFF5C0D31C6FEFC3/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 need latest time project name in each group. and there is only one data in each group&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 02:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-latest-time-project-name-in-each-group/m-p/433741#M167058</guid>
      <dc:creator>flzhang132</dc:creator>
      <dc:date>2018-10-14T02:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the latest time project name in each group?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-latest-time-project-name-in-each-group/m-p/433742#M167059</link>
      <description>&lt;P&gt;@flzhang132&lt;/P&gt;

&lt;P&gt;Have you tried this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH
| stats latest(project) as project latest(_time) as _time by vm_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Sample Search:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval project="erp",vm_id=100,_time=now()-180 | append [| makeresults | eval project="erp",vm_id=100,_time=now()-120] | append [| makeresults | eval project="ems",vm_id=100,_time=now()-60] | append [| makeresults | eval project="mcs",vm_id=101,_time=now()-180] | append [| makeresults | eval project="mcs",vm_id=101,_time=now()-120] | append [| makeresults | eval project="mes",vm_id=101,_time=now()-60] | stats latest(project) as project latest(_time) as _time by vm_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 04:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-the-latest-time-project-name-in-each-group/m-p/433742#M167059</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-10-14T04:23:52Z</dc:date>
    </item>
  </channel>
</rss>

