<?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: lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520645#M146591</link>
    <description>&lt;P&gt;so is this the search i need to run below ?&lt;/P&gt;&lt;P&gt;index=myindex ( [ | inputlookup my lookup | rename IPs as query | fields query ] OR [ | inputlookup my lookup | rename URLs as query | fields query ] )&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 14:42:12 GMT</pubDate>
    <dc:creator>splunkyboy2</dc:creator>
    <dc:date>2020-09-21T14:42:12Z</dc:date>
    <item>
      <title>lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520630#M146583</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help me with a lookup table&lt;/P&gt;&lt;P&gt;i have a 2 column lookup with column headings IPs and URLs, and i want to see if information in either csv field appears in the index data at all&lt;/P&gt;&lt;P&gt;some fields on the csv just have a url, some just have an ip , some both&lt;/P&gt;&lt;P&gt;is there a search string that will search the contents of either column against data held in index&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Helppppp&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 14:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520630#M146583</guid>
      <dc:creator>splunkyboy2</dc:creator>
      <dc:date>2020-09-21T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520633#M146584</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226366"&gt;@splunkyboy2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search ([ | inputlookup your_lookup | rename IP AS query | fields query ] OR [ | inputlookup your_lookup | rename URL AS query | fields query ])
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 14:19:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520633#M146584</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-21T14:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520638#M146588</link>
      <description>&lt;P&gt;Thanks for the reply, im new to splunk, so pardon my silly questions&lt;/P&gt;&lt;P&gt;how would i script a search that compares ether column of the lookup against data in the index using what you sent , would that be&lt;/P&gt;&lt;P&gt;index=myindex ( [&amp;nbsp; | inputlookup my lookup | rename IPs as query | fields query ] OR [ | inputlookup my lookup | rename URLs as query | fields query ] )&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;PRE&gt;your_search ([ | inputlookup your_lookup | rename IP AS query | fields query ] OR [ | inputlookup your_lookup | rename URL AS query | fields query ])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 14:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520638#M146588</guid>
      <dc:creator>splunkyboy2</dc:creator>
      <dc:date>2020-09-21T14:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520642#M146590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226366"&gt;@splunkyboy2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you rename a field in a subsearch&amp;nbsp; "AS query", you use the results of the subsearch as free text search in the main search and not only in a field as usual.&lt;/P&gt;&lt;P&gt;You have to use two subsearches because you have two columns to use in the search.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 14:39:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520642#M146590</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-21T14:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520645#M146591</link>
      <description>&lt;P&gt;so is this the search i need to run below ?&lt;/P&gt;&lt;P&gt;index=myindex ( [ | inputlookup my lookup | rename IPs as query | fields query ] OR [ | inputlookup my lookup | rename URLs as query | fields query ] )&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 14:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520645#M146591</guid>
      <dc:creator>splunkyboy2</dc:creator>
      <dc:date>2020-09-21T14:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520648#M146592</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226366"&gt;@splunkyboy2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes, try this and see results, to understand if it's Ok or if you have to modify something:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex ( [ | inputlookup mylookup | rename IPs as query | fields query ] OR [ | inputlookup mylookup | rename URLs as query | fields query ] )&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 15:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520648#M146592</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-21T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520649#M146593</link>
      <description>&lt;P&gt;i put an ip address i found in my data into the lookup to test the search, but it didnt bring back any results&lt;/P&gt;&lt;P&gt;as i dont really understand the search, its hard to see where its not working i guess&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 15:10:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520649#M146593</guid>
      <dc:creator>splunkyboy2</dc:creator>
      <dc:date>2020-09-21T15:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520651#M146594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226366"&gt;@splunkyboy2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;test the subsearches on by one.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 15:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520651#M146594</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-21T15:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520663#M146596</link>
      <description>&lt;P&gt;i tried breaking it down , but no results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have made a new lookup with two columns&amp;nbsp; , one called info is a mix of ip addresses and urls, and the second column just has the word match against all fields&lt;/P&gt;&lt;P&gt;i tried the search index=xxxxxxx | inputlookup xxxxx.csv | rename info as query | fields query&lt;/P&gt;&lt;P&gt;should that work if anything in the info field is present in the data ?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 16:38:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520663#M146596</guid>
      <dc:creator>splunkyboy2</dc:creator>
      <dc:date>2020-09-21T16:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520734#M146694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226366"&gt;@splunkyboy2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;maybe there a representation problem, but you have to use square brackets for subsearches (use Insert/Edit Code Cample for codes):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; index=xxxxxxx [| inputlookup xxxxx.csv | rename info as query | fields query ]
| ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using only one colums obviously semplify your search.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 06:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520734#M146694</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-22T06:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520737#M146696</link>
      <description>&lt;P&gt;it works using a single column ( match) lookup with the syntax below, thanks for all your help&lt;/P&gt;&lt;P&gt;index="wss_events" sourcetype=symantec:websecurityservice:scwss-poll&amp;nbsp; [| inputlookup "WSSIOC4.csv" | rename match as query | fields query ]&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 07:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table/m-p/520737#M146696</guid>
      <dc:creator>splunkyboy2</dc:creator>
      <dc:date>2020-09-22T07:04:44Z</dc:date>
    </item>
  </channel>
</rss>

