<?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 How can I limt my search results to the first event returned? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47952#M11442</link>
    <description>&lt;P&gt;How can I limit my search results to the first event returned?&lt;/P&gt;

&lt;P&gt;I am trying to define a transaction that starts with an action that is the first event that I am interested in. The issue is that subsequent updates appear as the same action multiple times in the middle fo the transaction. I am not interested in these subsequent events.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;20100910 09:46:27 FOO ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:28 FOO ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:29 FOO ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:30 FOO ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:28 BAR ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:29 UP ID1&lt;/P&gt;

&lt;P&gt;For each unique ID, I want my search to return the first FOO event, the BAR event, and the UP event, and calculate the duration. I want to ignore the additional FOO events. &lt;/P&gt;</description>
    <pubDate>Fri, 10 Sep 2010 20:59:57 GMT</pubDate>
    <dc:creator>ericrobinson</dc:creator>
    <dc:date>2010-09-10T20:59:57Z</dc:date>
    <item>
      <title>How can I limt my search results to the first event returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47952#M11442</link>
      <description>&lt;P&gt;How can I limit my search results to the first event returned?&lt;/P&gt;

&lt;P&gt;I am trying to define a transaction that starts with an action that is the first event that I am interested in. The issue is that subsequent updates appear as the same action multiple times in the middle fo the transaction. I am not interested in these subsequent events.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;20100910 09:46:27 FOO ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:28 FOO ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:29 FOO ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:30 FOO ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:28 BAR ID1&lt;/P&gt;

&lt;P&gt;20100910 09:46:29 UP ID1&lt;/P&gt;

&lt;P&gt;For each unique ID, I want my search to return the first FOO event, the BAR event, and the UP event, and calculate the duration. I want to ignore the additional FOO events. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 20:59:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47952#M11442</guid>
      <dc:creator>ericrobinson</dc:creator>
      <dc:date>2010-09-10T20:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I limt my search results to the first event returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47953#M11443</link>
      <description>&lt;P&gt;Sounds like the &lt;A href="http://www.splunk.com/base/Documentation/4.1.5/SearchReference/Dedup" rel="nofollow"&gt;dedup&lt;/A&gt; command is what you're looking for.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 21:12:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47953#M11443</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-09-10T21:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I limt my search results to the first event returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47954#M11444</link>
      <description>&lt;P&gt;That seems to result in only one event being returned as they all have the same ID.. Ill add that the events ate from different sources.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 21:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47954#M11444</guid>
      <dc:creator>ericrobinson</dc:creator>
      <dc:date>2010-09-10T21:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I limt my search results to the first event returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47955#M11445</link>
      <description>&lt;P&gt;seems you should dedup on action, not id.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 21:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47955#M11445</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-10T21:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I limt my search results to the first event returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47956#M11446</link>
      <description>&lt;P&gt;Probably something like sourcetype=xxx | dedup action,id | transaction id&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 21:53:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-limt-my-search-results-to-the-first-event-returned/m-p/47956#M11446</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-09-10T21:53:58Z</dc:date>
    </item>
  </channel>
</rss>

