<?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 use a table as input for a new search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-table-as-input-for-a-new-search/m-p/464745#M130954</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;index="my_index" sourcetype="my_sourcetype" earliest=-1h@h   [ search index="my_index" sourcetype="my_sourcetype" earliest=-10h@h latest=-1h@h action="failed login" | stats count by username, action | where count &amp;gt; 5 | table username ] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The [subsearch] runs first, which produces the list of username which is fed to the main search. &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchTutorial/Useasubsearch#Example_2:_Search_with_a_subsearch"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchTutorial/Useasubsearch#Example_2:_Search_with_a_subsearch&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2019 20:37:03 GMT</pubDate>
    <dc:creator>solarboyz1</dc:creator>
    <dc:date>2019-08-27T20:37:03Z</dc:date>
    <item>
      <title>How to use a table as input for a new search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-table-as-input-for-a-new-search/m-p/464744#M130953</link>
      <description>&lt;P&gt;Hi all.  I'm trying to write a search that will list users with more than 5 failed logins in the past 8 hours and then from that result, show those users that have had a failure in the past hour.  I've got the first part working with this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="my_index" sourcetype="my_sourcetype" earliest=-10h@h action="failed login" | stats count by username, action | where count &amp;gt; 5 | table username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I now have a table with the usernames I want to run my secondary search for.&lt;BR /&gt;&lt;BR /&gt;
How do I take that table and run a new search against it?  &lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 20:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-table-as-input-for-a-new-search/m-p/464744#M130953</guid>
      <dc:creator>bobstoll</dc:creator>
      <dc:date>2019-08-27T20:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a table as input for a new search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-table-as-input-for-a-new-search/m-p/464745#M130954</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="my_index" sourcetype="my_sourcetype" earliest=-1h@h   [ search index="my_index" sourcetype="my_sourcetype" earliest=-10h@h latest=-1h@h action="failed login" | stats count by username, action | where count &amp;gt; 5 | table username ] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The [subsearch] runs first, which produces the list of username which is fed to the main search. &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchTutorial/Useasubsearch#Example_2:_Search_with_a_subsearch"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchTutorial/Useasubsearch#Example_2:_Search_with_a_subsearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 20:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-table-as-input-for-a-new-search/m-p/464745#M130954</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-08-27T20:37:03Z</dc:date>
    </item>
  </channel>
</rss>

