<?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: Finding multiple events for same user in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-multiple-events-for-same-user/m-p/125749#M33991</link>
    <description>&lt;P&gt;I would go with a subsearch:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;message2 search&amp;gt; [search &amp;lt;message1 search&amp;gt; | dedup user_id | fields user_id] | stats count by user_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Nov 2014 07:05:49 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2014-11-17T07:05:49Z</dc:date>
    <item>
      <title>Finding multiple events for same user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-multiple-events-for-same-user/m-p/125748#M33990</link>
      <description>&lt;P&gt;Ok, so title might not say exactly what I'm looking for but here is my scenario.&lt;/P&gt;

&lt;P&gt;a. We have users who received error message&lt;BR /&gt;
b. We have users who have signed_in field value set to 'y'&lt;/P&gt;

&lt;P&gt;We need to find those users who have field_a value set to 'y' and received the error message.&lt;/P&gt;

&lt;P&gt;The problem is that that signed_in field does not exist in error message.&lt;/P&gt;

&lt;P&gt;Message 1 has these fields: user_id, signed_in (boolean value of 'y' or 'n')&lt;BR /&gt;
Message 2 has these fields: user_id, error_description&lt;/P&gt;

&lt;P&gt;I've tried using transactions, but with millions of events search takes forever.&lt;/P&gt;

&lt;P&gt;A push in the right direction is appreciated.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-multiple-events-for-same-user/m-p/125748#M33990</guid>
      <dc:creator>ateterine</dc:creator>
      <dc:date>2020-09-28T18:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Finding multiple events for same user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-multiple-events-for-same-user/m-p/125749#M33991</link>
      <description>&lt;P&gt;I would go with a subsearch:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;message2 search&amp;gt; [search &amp;lt;message1 search&amp;gt; | dedup user_id | fields user_id] | stats count by user_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Nov 2014 07:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-multiple-events-for-same-user/m-p/125749#M33991</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-11-17T07:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Finding multiple events for same user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-multiple-events-for-same-user/m-p/125750#M33992</link>
      <description>&lt;P&gt;I've tried that, but for some reason every time I run that search I get different numbers&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest="11/16/2014:09:00:00" latest="11/16/2014:20:00:00" error_description="RequestUserLeagues - Could not obtain enabled leagues" [search fantasy_leagues=y | dedup user_id | fields user_id] | stats dc(user_id) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Nov 2014 01:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-multiple-events-for-same-user/m-p/125750#M33992</guid>
      <dc:creator>ateterine</dc:creator>
      <dc:date>2014-11-18T01:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Finding multiple events for same user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-multiple-events-for-same-user/m-p/125751#M33993</link>
      <description>&lt;P&gt;After cleaning up the search and referencing &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchTutorial/Useasubsearch"&gt;Splunk docs&lt;/A&gt; I got it working&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest="11/16/2014:09:00:00" latest="11/16/2014:20:00:00"  error_description="*RequestUserLeagues - Could not obtain enabled leagues*" [search earliest="11/16/2014:09:00:00" latest="11/16/2014:20:00:00"  fantasy_leagues=y | dedup user_id | fields user_id] | stats dc(user_id) as UsersWithIncorrectMessage
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Nov 2014 20:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-multiple-events-for-same-user/m-p/125751#M33993</guid>
      <dc:creator>ateterine</dc:creator>
      <dc:date>2014-11-18T20:01:38Z</dc:date>
    </item>
  </channel>
</rss>

