<?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 for ip in lookup based on system alias in csv in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-ip-in-lookup-based-on-system-alias-in-csv/m-p/685325#M114340</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267258"&gt;@Trusty&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can use the lookup to enrich the dataset and then filter based on the value&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults |eval dscip="192.168.1.1 192.168.2.2 192.168.1.2"|makemv dscip| mvexpand dscip
|rename comment as "Above is just data generation"
|lookup lookup.csv system-ip as dscip OUTPUT system-alias as env
|where env = "prod"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 24 Apr 2024 13:39:29 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2024-04-24T13:39:29Z</dc:date>
    <item>
      <title>Search for ip in lookup based on system alias in csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-ip-in-lookup-based-on-system-alias-in-csv/m-p/685323#M114339</link>
      <description>&lt;P&gt;Helo&lt;/P&gt;&lt;P&gt;I have a search query like this: index=test dscip=192.168.1.1 OR dscip=192.168.1.2 ...&lt;/P&gt;&lt;P&gt;I would like to search this list of ip based on system-alias in my lookup&lt;/P&gt;&lt;P&gt;This is my sample lookup.csv:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;system-alias&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;system-ip&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;prod&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;192.168.1.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;dev&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;192.168.2.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;prod&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;&lt;P&gt;192.168.1.2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so what a search query should look like if i want to serach only for prod ip`s ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-ip-in-lookup-based-on-system-alias-in-csv/m-p/685323#M114339</guid>
      <dc:creator>Trusty</dc:creator>
      <dc:date>2024-04-24T13:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search for ip in lookup based on system alias in csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-ip-in-lookup-based-on-system-alias-in-csv/m-p/685325#M114340</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267258"&gt;@Trusty&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can use the lookup to enrich the dataset and then filter based on the value&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults |eval dscip="192.168.1.1 192.168.2.2 192.168.1.2"|makemv dscip| mvexpand dscip
|rename comment as "Above is just data generation"
|lookup lookup.csv system-ip as dscip OUTPUT system-alias as env
|where env = "prod"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:39:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-ip-in-lookup-based-on-system-alias-in-csv/m-p/685325#M114340</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2024-04-24T13:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search for ip in lookup based on system alias in csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-ip-in-lookup-based-on-system-alias-in-csv/m-p/685401#M114359</link>
      <description>&lt;P&gt;It works, I have an IP list based on the specified system name (prod etc). Now how can I associate this list with a search?&lt;BR /&gt;So that the list of IPs displayed by this query can be attached to dscip&lt;BR /&gt;| search sourcetype="new" DstIP=(list of above ip)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 07:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-ip-in-lookup-based-on-system-alias-in-csv/m-p/685401#M114359</guid>
      <dc:creator>Trusty</dc:creator>
      <dc:date>2024-04-25T07:28:58Z</dc:date>
    </item>
  </channel>
</rss>

