<?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: Need to extract latest value from multiple matches? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-latest-value-from-multiple-matches/m-p/21076#M177328</link>
    <description>&lt;P&gt;replace &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table  feed dailypeak _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats max(_time) as _time by feed dailypeak
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 May 2013 14:14:15 GMT</pubDate>
    <dc:creator>jonuwz</dc:creator>
    <dc:date>2013-05-02T14:14:15Z</dc:date>
    <item>
      <title>Need to extract latest value from multiple matches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-latest-value-from-multiple-matches/m-p/21075#M177327</link>
      <description>&lt;P&gt;Hello, The following query results in multiple results when the where condition(where msgdiff=dailypeak) is met but I want just latest result, please help?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="ContentGateway" sourcetype=Messagestats  host="cg1-e-fid-bos-l1" 
| streamstats current=t window=2 global=f allnum=t range(Messages) as msgdiff by host source
| eval msgdiff=msgdiff/5
| rex field=source "/home/activ/ContentGateway/log/updates/MessageStatistics.(?&amp;lt;feed&amp;gt;\w*(?!\d)\w)"
| bin _time span=5s
| stats sum(msgdiff) as msgdiff by _time feed
| eventstats max(msgdiff) as dailypeak by feed 
| where msgdiff=dailypeak
| table  feed dailypeak _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thanks,&lt;BR /&gt;
Thiru.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 15:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-latest-value-from-multiple-matches/m-p/21075#M177327</guid>
      <dc:creator>thiru25</dc:creator>
      <dc:date>2013-05-01T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract latest value from multiple matches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-latest-value-from-multiple-matches/m-p/21076#M177328</link>
      <description>&lt;P&gt;replace &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table  feed dailypeak _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats max(_time) as _time by feed dailypeak
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 May 2013 14:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-latest-value-from-multiple-matches/m-p/21076#M177328</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-05-02T14:14:15Z</dc:date>
    </item>
  </channel>
</rss>

