<?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 use a large input in a query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279532#M190472</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=eventA OR index=eventB action=A or action=B | stats latest(eval(if(action="A", _time, null()))) as a latest(eval(if(action="B", _time, null()))) as b by userid | where a&amp;gt;b
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Apr 2016 18:39:16 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-04-11T18:39:16Z</dc:date>
    <item>
      <title>How do I use a large input in a query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279527#M190467</link>
      <description>&lt;P&gt;I am try to write some query[ies] so that I find user who had done action A AFTER they did action B .   the time span is simply too long to use transaction command. Previously when I used to run a query for userid who did action A (the smaller set of the 2), manually make that list into a giant (userid1 OR userid2) and search for users who did action B.  This would work when the output from action A was around 10k id.  Now I have to do thing same thing, except the the number of user now increase to the hundreds of thousand range too impractical to do the manual approach.  I tried using subsearch but that doesn't work well with large input data.  can someone suggest a solution that scale well? thanks&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 01:23:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279527#M190467</guid>
      <dc:creator>trunghung</dc:creator>
      <dc:date>2016-04-09T01:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use a large input in a query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279528#M190468</link>
      <description>&lt;P&gt;Have you tried something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=eventA OR index=eventB action=A or action=B | chart count over user by action | where actionA&amp;gt;0 AND actionB&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Apr 2016 14:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279528#M190468</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-04-09T14:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use a large input in a query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279529#M190469</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=eventA OR index=eventB) (action="A" OR action="B") | streamstats count(eval(action="A")) AS SessionID BY user | sort SessionID user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Apr 2016 18:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279529#M190469</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-04-09T18:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use a large input in a query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279530#M190470</link>
      <description>&lt;P&gt;sorry I left out an important part of the question, I need to find the userID of those who did action A AFTER they did action B.  your query wont' work. thanks you for your help though&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 18:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279530#M190470</guid>
      <dc:creator>trunghung</dc:creator>
      <dc:date>2016-04-09T18:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use a large input in a query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279531#M190471</link>
      <description>&lt;P&gt;sorry I left out an important part of the question, I need to find the userID of those who did action A AFTER they did action B.  your query wont' work. thanks you for your help though&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 18:47:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279531#M190471</guid>
      <dc:creator>trunghung</dc:creator>
      <dc:date>2016-04-09T18:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use a large input in a query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279532#M190472</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=eventA OR index=eventB action=A or action=B | stats latest(eval(if(action="A", _time, null()))) as a latest(eval(if(action="B", _time, null()))) as b by userid | where a&amp;gt;b
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Apr 2016 18:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279532#M190472</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-04-11T18:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use a large input in a query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279533#M190473</link>
      <description>&lt;P&gt;OK, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=eventA OR index=eventB) (action="A" OR action="B") | streamstats count(eval(action="A")) AS SessionID BY user userID | sort SessionID user userID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-a-large-input-in-a-query/m-p/279533#M190473</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-04-28T15:08:58Z</dc:date>
    </item>
  </channel>
</rss>

