<?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: First x results by host. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/First-x-results-by-host/m-p/149775#M41914</link>
    <description>&lt;P&gt;its not possible if you don't have a reference. you can make a outputcsv host.csv. then in the next search &lt;/P&gt;

&lt;P&gt;index=main sourcetype=ingest_logs status=error host NOT [|inputcsv host.csv]| head 10 by host | table _time host _raw&lt;/P&gt;

&lt;P&gt;something like this...&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2013 17:42:11 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2013-11-20T17:42:11Z</dc:date>
    <item>
      <title>First x results by host.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/First-x-results-by-host/m-p/149774#M41913</link>
      <description>&lt;P&gt;I want to get the first(most recent) say 10 results that meet my criteria per host. Because my environment has 100s of hosts, some of which are way more active than others... I need a way to keep splunk from searching for matches on the hosts where I've already matched the 10 results I'm seeking. &lt;/P&gt;

&lt;P&gt;I'd imagine it would look something like this...&lt;/P&gt;

&lt;P&gt;index=main sourcetype=ingest_logs status=error | head 10 by host | table _time host _raw&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 16:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/First-x-results-by-host/m-p/149774#M41913</guid>
      <dc:creator>marquiselee</dc:creator>
      <dc:date>2013-11-20T16:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: First x results by host.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/First-x-results-by-host/m-p/149775#M41914</link>
      <description>&lt;P&gt;its not possible if you don't have a reference. you can make a outputcsv host.csv. then in the next search &lt;/P&gt;

&lt;P&gt;index=main sourcetype=ingest_logs status=error host NOT [|inputcsv host.csv]| head 10 by host | table _time host _raw&lt;/P&gt;

&lt;P&gt;something like this...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 17:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/First-x-results-by-host/m-p/149775#M41914</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-11-20T17:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: First x results by host.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/First-x-results-by-host/m-p/149776#M41915</link>
      <description>&lt;P&gt;"by host" is not valid for the head command.  Just &lt;CODE&gt;'head 10'&lt;/CODE&gt; should do the job.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 17:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/First-x-results-by-host/m-p/149776#M41915</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2013-11-20T17:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: First x results by host.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/First-x-results-by-host/m-p/149777#M41916</link>
      <description>&lt;P&gt;Are you looking for something like this&lt;BR /&gt;
host1 firstrecord...&lt;BR /&gt;
host1 secondrecord..&lt;BR /&gt;
.......&lt;BR /&gt;
.......&lt;BR /&gt;
host1 tenthrecord&lt;BR /&gt;
host2 firstrecord...&lt;BR /&gt;
host2 secondrecord..&lt;BR /&gt;
.......&lt;BR /&gt;
.......&lt;BR /&gt;
host2 tenthrecord&lt;BR /&gt;
....&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 18:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/First-x-results-by-host/m-p/149777#M41916</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-20T18:23:49Z</dc:date>
    </item>
  </channel>
</rss>

