<?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 do I use the data from lookup table column as search on live index? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/588517#M204975</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/242522"&gt;@socks&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you try with this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=*&lt;BR /&gt;| lookup networkservers.csv "IPv4 Address" as src_ip OUTPUT src_ip&lt;BR /&gt;| stats count by src_ip,dest_port&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 05:01:55 GMT</pubDate>
    <dc:creator>SanjayReddy</dc:creator>
    <dc:date>2022-03-11T05:01:55Z</dc:date>
    <item>
      <title>How do I use the data from lookup table column as search on live index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/588496#M204967</link>
      <description>&lt;P&gt;I just built my first lookup table, because I have a csv of about 200 servers with the in different ip spaces and I need to perform 2 things . 1. confirm the ip's in the csv's are in splunk and 2. display per ip what ports are listening.&lt;BR /&gt;&lt;BR /&gt;So my query has been this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=* |stats count by src_ip , dest_port [|inputlookup networkservers.csv | fields "IPv4 Address" | rename "IPv4 Address " as query&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I have confirmed the lookup table is there and I can see it , and I can query the network, im just having issues with ingesting the 200+ ips as search items and then marrying the ports and prots with it . thanks in advance if this makes sense or am i looking at it all wrong ?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 23:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/588496#M204967</guid>
      <dc:creator>socks</dc:creator>
      <dc:date>2022-03-10T23:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the data from lookup table column as search on live index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/588517#M204975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/242522"&gt;@socks&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you try with this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=*&lt;BR /&gt;| lookup networkservers.csv "IPv4 Address" as src_ip OUTPUT src_ip&lt;BR /&gt;| stats count by src_ip,dest_port&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 05:01:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/588517#M204975</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-03-11T05:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the data from lookup table column as search on live index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/588525#M204979</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/242522" target="_blank"&gt;@socks&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, try this&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup networkservers.csv
| rename "IPv4 Address" as src_ip
| join type=outer src_ip
    [| search index=* src_ip=* dest_port=*
    | stats count by src_ip dest_port]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 06:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/588525#M204979</guid>
      <dc:creator>Zhanali</dc:creator>
      <dc:date>2022-03-11T06:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the data from lookup table column as search on live index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/588589#M205003</link>
      <description>&lt;P&gt;I think what you mean to do is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* [|inputlookup networkservers.csv | fields "IPv4 Address" | rename "IPv4 Address" as src_ip]
| stats count by src_ip, dest_port&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;(Note your sample code missed a closing bracket; also the rename command contained &amp;nbsp;an extra space in quotes.)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 09:08:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/588589#M205003</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-03-11T09:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the data from lookup table column as search on live index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/589104#M205160</link>
      <description>&lt;P&gt;nope this is not working , as the query seems to think the field src_ip is in the lookup table and it is not&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 14:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-data-from-lookup-table-column-as-search-on-live/m-p/589104#M205160</guid>
      <dc:creator>socks</dc:creator>
      <dc:date>2022-03-15T14:07:06Z</dc:date>
    </item>
  </channel>
</rss>

