<?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: search on each lookup event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342751#M101534</link>
    <description>&lt;P&gt;@samhodgson did you had any luck with that or do you need any further help?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2017 08:46:44 GMT</pubDate>
    <dc:creator>horsefez</dc:creator>
    <dc:date>2017-11-06T08:46:44Z</dc:date>
    <item>
      <title>search on each lookup event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342745#M101528</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a lookup containing username,hostname and I also have an assets index storing hostname, mac, ip.  Im trying to merge data from the 2 to generate an up-to-date assets lookup for Enterprise Security.  So something that will iterate all entries in the lookup and search against the assets index using hostname.  &lt;/P&gt;

&lt;P&gt;Im not sure how to best go about this, should I be using a subsearch or join or something else? please advise, i've tried playing around with subsearches to no avail so far.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 11:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342745#M101528</guid>
      <dc:creator>samhodgson</dc:creator>
      <dc:date>2017-11-03T11:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: search on each lookup event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342746#M101529</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;how about a lookup command to merge them together?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| lookup yourcsv hostname OUTPUT username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After that you can pipe your results into a new csv file via &lt;CODE&gt;outputcsv&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 12:39:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342746#M101529</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2017-11-03T12:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: search on each lookup event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342747#M101530</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for your reply.  This is what im looking to do but i need to merge data from the assets index into the output too so something like:&lt;/P&gt;

&lt;P&gt;inputlookup hosts | [index=assets | table hostname,mac,ip] | [ get mac,ip here from search using hostnames from inputlookup] | output username, hostname, mac ip&lt;/P&gt;

&lt;P&gt;Hope this makes sense?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 12:55:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342747#M101530</guid>
      <dc:creator>samhodgson</dc:creator>
      <dc:date>2017-11-03T12:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: search on each lookup event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342748#M101531</link>
      <description>&lt;P&gt;Hi Sam, &lt;BR /&gt;
no it really doesn't make much sense, but I'm trying to suggest something.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=assets | fields hostname, mac, ip | lookup yourlookupcsv hostname OUTPUT username | table username, hostname, mac, ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342748#M101531</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2017-11-03T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: search on each lookup event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342749#M101532</link>
      <description>&lt;P&gt;Hi Pyro,&lt;/P&gt;

&lt;P&gt;I think this might be close to what I want! it isn't quite working yet but will play around with it, many thanks I think this may have put me on the right track.  Will let you know how i get on.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:13:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342749#M101532</guid>
      <dc:creator>samhodgson</dc:creator>
      <dc:date>2017-11-03T13:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: search on each lookup event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342750#M101533</link>
      <description>&lt;P&gt;Good luck on that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:18:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342750#M101533</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2017-11-03T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: search on each lookup event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342751#M101534</link>
      <description>&lt;P&gt;@samhodgson did you had any luck with that or do you need any further help?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 08:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342751#M101534</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2017-11-06T08:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: search on each lookup event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342752#M101535</link>
      <description>&lt;P&gt;Hi Pyro,&lt;/P&gt;

&lt;P&gt;Thanks for coming back to me on this - i've just got back into the office today and managed to get it working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;

&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 14:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-on-each-lookup-event/m-p/342752#M101535</guid>
      <dc:creator>samhodgson</dc:creator>
      <dc:date>2017-11-07T14:37:04Z</dc:date>
    </item>
  </channel>
</rss>

