<?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 find the last regex match for a multi-valued field in a transaction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-last-regex-match-for-a-multi-valued-field-in-a/m-p/63692#M15742</link>
    <description>&lt;P&gt;over all events. But if you do a &lt;/P&gt;

&lt;P&gt;... | dedup hash _time | ...&lt;/P&gt;

&lt;P&gt;you'll dedup the combination of the fields, so in this case you'll get one hash per bucket of time.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2013 19:56:06 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-06-17T19:56:06Z</dc:date>
    <item>
      <title>How to find the last regex match for a multi-valued field in a transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-last-regex-match-for-a-multi-valued-field-in-a/m-p/63689#M15739</link>
      <description>&lt;P&gt;We're finding that when large files are downloaded from the Internet, the application whitelisting client reports a "new file" with a different hash multiple times as the download completes.&lt;/P&gt;

&lt;P&gt;I essentially want to dedup the events by host, file, path but only over a very limited time window (like 5 minutes).  If I use transaction to group those events and it puts the values of the file hash in a multi-value field (in time order, not sort order I believe), how do I extract just that last hash?&lt;/P&gt;

&lt;P&gt;Or is there some way to combine dedup and bins or something like that.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;C&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 01:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-last-regex-match-for-a-multi-valued-field-in-a/m-p/63689#M15739</guid>
      <dc:creator>responsys_cm</dc:creator>
      <dc:date>2013-06-14T01:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the last regex match for a multi-valued field in a transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-last-regex-match-for-a-multi-valued-field-in-a/m-p/63690#M15740</link>
      <description>&lt;P&gt;How about using &lt;CODE&gt;bucket&lt;/CODE&gt; (aka &lt;CODE&gt;bin&lt;/CODE&gt;) and &lt;CODE&gt;stats&lt;/CODE&gt; instead?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | bucket _time span=5m | stats last(hash) by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you still want to go the &lt;CODE&gt;transaction&lt;/CODE&gt; / mvfield route you could probably reach some success by using &lt;CODE&gt;eval&lt;/CODE&gt;'s &lt;CODE&gt;mvindex&lt;/CODE&gt; function (an index of "-1" returns the last item in the list).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 06:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-last-regex-match-for-a-multi-valued-field-in-a/m-p/63690#M15740</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-06-14T06:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the last regex match for a multi-valued field in a transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-last-regex-match-for-a-multi-valued-field-in-a/m-p/63691#M15741</link>
      <description>&lt;P&gt;Thanks, Ayn!  Quick question, if I run dedup after the bucket command, will Splunk only dedup events in each bucket or will it dedup over all events?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 19:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-last-regex-match-for-a-multi-valued-field-in-a/m-p/63691#M15741</guid>
      <dc:creator>responsys_cm</dc:creator>
      <dc:date>2013-06-17T19:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the last regex match for a multi-valued field in a transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-last-regex-match-for-a-multi-valued-field-in-a/m-p/63692#M15742</link>
      <description>&lt;P&gt;over all events. But if you do a &lt;/P&gt;

&lt;P&gt;... | dedup hash _time | ...&lt;/P&gt;

&lt;P&gt;you'll dedup the combination of the fields, so in this case you'll get one hash per bucket of time.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 19:56:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-last-regex-match-for-a-multi-valued-field-in-a/m-p/63692#M15742</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-06-17T19:56:06Z</dc:date>
    </item>
  </channel>
</rss>

