<?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 all events for IP address within a CSV file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288185#M55080</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;Sorry for being a bit vague, I'm very new to Splunk and its search language.&lt;/P&gt;

&lt;P&gt;I've marking this as a solution.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2017 21:59:21 GMT</pubDate>
    <dc:creator>umarfarooq</dc:creator>
    <dc:date>2017-11-16T21:59:21Z</dc:date>
    <item>
      <title>Search for all events for IP address within a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288181#M55076</link>
      <description>&lt;P&gt;I would like to know how we can search for all events for a list of IP in a CSV file.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 20:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288181#M55076</guid>
      <dc:creator>umarfarooq</dc:creator>
      <dc:date>2017-11-16T20:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search for all events for IP address within a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288182#M55077</link>
      <description>&lt;P&gt;Without much information here, my suggestion would be this:&lt;/P&gt;

&lt;P&gt;Search based on a field (assuming each event have a field called IP_Address, adjust per your situation)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar   [| inputlookup yourcsvfile.csv | table IP_Address ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;String based search (no fields are extracted, searching IP address in the raw data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar   [| inputlookup yourcsvfile.csv | table IP_Address | rename IP_Address as search ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Nov 2017 21:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288182#M55077</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-16T21:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Search for all events for IP address within a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288183#M55078</link>
      <description>&lt;P&gt;If you have a CSV file called ip.csv with a column called &lt;CODE&gt;IP&lt;/CODE&gt; in Splunk, you can feed it into a search like this:&lt;BR /&gt;
&lt;CODE&gt;index=myindex [ | inputlookup ip.csv | stats values(IP) AS search | format ]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That will turn each IP address from ip.csv into a seach term. So if your CSV file looked like this:&lt;BR /&gt;
&lt;PRE&gt;IP&lt;BR /&gt;
1.2.3.4&lt;BR /&gt;
2.3.4.5&lt;BR /&gt;
3.4.5.6&lt;/PRE&gt;&lt;BR /&gt;
Then the above search would wind up searching for this: &lt;CODE&gt;index=myindex ("1.2.3.4" OR "2.3.4.5" OR "3.4.5.6")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 21:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288183#M55078</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-11-16T21:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search for all events for IP address within a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288184#M55079</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;

&lt;P&gt;This solved my problem.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 21:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288184#M55079</guid>
      <dc:creator>umarfarooq</dc:creator>
      <dc:date>2017-11-16T21:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search for all events for IP address within a CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288185#M55080</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;Sorry for being a bit vague, I'm very new to Splunk and its search language.&lt;/P&gt;

&lt;P&gt;I've marking this as a solution.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 21:59:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-all-events-for-IP-address-within-a-CSV-file/m-p/288185#M55080</guid>
      <dc:creator>umarfarooq</dc:creator>
      <dc:date>2017-11-16T21:59:21Z</dc:date>
    </item>
  </channel>
</rss>

