<?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 How to combine lists of source and destination IPs into one unique list to match against a CSV file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-combine-lists-of-source-and-destination-IPs-into-one/m-p/235801#M45879</link>
    <description>&lt;P&gt;I have a list of source and destination IPs that I'm trying to concatenate into one unique list and check against a CSV file. I'm trying to make a list of all the unique source IPs (I don't need the count, but it'd be nice), add that to a list of unique destination IPs, then take all that and display only the IPs that match a CSV file I have. Does anyone have an idea of how to do that?&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 21:00:13 GMT</pubDate>
    <dc:creator>ststephe</dc:creator>
    <dc:date>2016-05-09T21:00:13Z</dc:date>
    <item>
      <title>How to combine lists of source and destination IPs into one unique list to match against a CSV file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-combine-lists-of-source-and-destination-IPs-into-one/m-p/235801#M45879</link>
      <description>&lt;P&gt;I have a list of source and destination IPs that I'm trying to concatenate into one unique list and check against a CSV file. I'm trying to make a list of all the unique source IPs (I don't need the count, but it'd be nice), add that to a list of unique destination IPs, then take all that and display only the IPs that match a CSV file I have. Does anyone have an idea of how to do that?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 21:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-combine-lists-of-source-and-destination-IPs-into-one/m-p/235801#M45879</guid>
      <dc:creator>ststephe</dc:creator>
      <dc:date>2016-05-09T21:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine lists of source and destination IPs into one unique list to match against a CSV file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-combine-lists-of-source-and-destination-IPs-into-one/m-p/235802#M45880</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup myIPfield | table myIPfield | eval dataSource="events" | appendpipe [|inputcsv myIPfile.csv | table myIPfield | eval dataSource="CSV"] | stats values(*) AS * dc(dataSource) AS numSources BY myIPfield ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you can finish out with:&lt;/P&gt;

&lt;P&gt;For inner join:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where numSources=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For left join:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where dataSource="events"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For right join:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where dataSource="CSV"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For outer join:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where numSources=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2016 21:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-combine-lists-of-source-and-destination-IPs-into-one/m-p/235802#M45880</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-09T21:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine lists of source and destination IPs into one unique list to match against a CSV file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-combine-lists-of-source-and-destination-IPs-into-one/m-p/235803#M45881</link>
      <description>&lt;P&gt;What you're trying to do is definitely possible but it would be tough to give a solution without knowing your data (is source and dest ip present in same event, how is the CSV file stored in splunk;)...&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 21:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-combine-lists-of-source-and-destination-IPs-into-one/m-p/235803#M45881</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-09T21:19:24Z</dc:date>
    </item>
  </channel>
</rss>

