<?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 lookup in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586133#M204175</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241491"&gt;@SharmaS2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you try this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=xyz&lt;BR /&gt;| lookup&amp;nbsp;&lt;SPAN&gt;abc.csv&amp;nbsp;Source_IP as&amp;nbsp;src&amp;nbsp;&amp;nbsp;&lt;BR /&gt;| table&amp;nbsp;src,dst,city,counrty&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;OR&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;index=xyz&lt;BR /&gt;| join type=left src&lt;BR /&gt;[| lookup&amp;nbsp;abc.csv&amp;nbsp;Source_IP as&amp;nbsp;src&lt;BR /&gt;| fields src]&lt;BR /&gt;&lt;BR /&gt;| table&amp;nbsp;src,dst,city,counrty&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 04:42:27 GMT</pubDate>
    <dc:creator>SanjayReddy</dc:creator>
    <dc:date>2022-02-23T04:42:27Z</dc:date>
    <item>
      <title>How to lookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586076#M204162</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;i have one abc.csv file with&amp;nbsp; only one colunm as Source_IP where values are in10.10.10.0/24 format .&lt;/P&gt;
&lt;P&gt;next i have&amp;nbsp; index=xyz which has multiple column as dst,city,counrty , src is one of the&amp;nbsp; column .&lt;/P&gt;
&lt;P&gt;here i need all data from index=xyz where Source_IP from abc.csv matches with src column of index=xyz.&lt;/P&gt;
&lt;P&gt;i have uploaded the file successfully but unable to find the relevant query to fetch data ..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586076#M204162</guid>
      <dc:creator>SharmaS2</dc:creator>
      <dc:date>2022-02-22T17:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to lookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586096#M204167</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=xyz [|inputlookup abc.csv |rename "Source_IP" as "src"|return 999 "src"] &lt;/LI-CODE&gt;&lt;P&gt;After the search, add a pipe (|) and the rest of your search criteria.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 18:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586096#M204167</guid>
      <dc:creator>Stefanie</dc:creator>
      <dc:date>2022-02-22T18:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to lookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586133#M204175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241491"&gt;@SharmaS2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you try this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=xyz&lt;BR /&gt;| lookup&amp;nbsp;&lt;SPAN&gt;abc.csv&amp;nbsp;Source_IP as&amp;nbsp;src&amp;nbsp;&amp;nbsp;&lt;BR /&gt;| table&amp;nbsp;src,dst,city,counrty&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;OR&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;index=xyz&lt;BR /&gt;| join type=left src&lt;BR /&gt;[| lookup&amp;nbsp;abc.csv&amp;nbsp;Source_IP as&amp;nbsp;src&lt;BR /&gt;| fields src]&lt;BR /&gt;&lt;BR /&gt;| table&amp;nbsp;src,dst,city,counrty&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 04:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586133#M204175</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-02-23T04:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to lookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586187#M204195</link>
      <description>&lt;P&gt;thanks ..its working properly ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you please explain what is&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;return 999&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Feb 2022 10:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586187#M204195</guid>
      <dc:creator>SharmaS2</dc:creator>
      <dc:date>2022-02-23T10:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to lookup in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586231#M204213</link>
      <description>&lt;P&gt;Sure!&lt;/P&gt;&lt;P&gt;The return command returns values from the subsearch (The stuff in your brackets) so that you can use it to compare with your main search. But the return command automatically limits the number of items returned, you have to tell it how many to return.&amp;nbsp;&lt;BR /&gt;Because I don't know how big your csv is, 999 was a safe bet.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 13:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-in-Splunk/m-p/586231#M204213</guid>
      <dc:creator>Stefanie</dc:creator>
      <dc:date>2022-02-23T13:29:39Z</dc:date>
    </item>
  </channel>
</rss>

