<?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 Help searching a CSV file with multiple conditions in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-searching-a-CSV-file-with-multiple-conditions/m-p/292691#M55756</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I spent a lot of hours to find the request I need with no success so I ask your help.&lt;/P&gt;

&lt;P&gt;My goal is to build a request with multiple fields condition values extract from a CSV.&lt;/P&gt;

&lt;P&gt;I have a CSV file with the below construction&lt;/P&gt;

&lt;P&gt;| inputlookup nios_member_ip_lookup | fields MEMBER_IP&lt;/P&gt;

&lt;P&gt;MEMBER_IP&lt;BR /&gt;
192.168.1.xx1&lt;BR /&gt;
192.168.3.xx2&lt;BR /&gt;
192.168.1.xx5&lt;BR /&gt;
192.168.1.xx7&lt;BR /&gt;
192.168.1.xx0&lt;BR /&gt;
192.168.xx.x0&lt;BR /&gt;
192.168.x.xx5&lt;BR /&gt;
192.168.x.xx0&lt;BR /&gt;
192.168.x.xx0&lt;BR /&gt;
192.168.x.xx3 &lt;/P&gt;

&lt;P&gt;Based on this result, I would have all results from each defined value for a field like:&lt;/P&gt;

&lt;P&gt;index=ib_dns_summary report=si_dns_top_clients CLIENT=@IP1 OR CLIENT=@IP2 OR CLIENT=@IP3 ...&lt;/P&gt;

&lt;P&gt;So I think I need to build a subsearch request, but I failed to do that. I tried this:&lt;/P&gt;

&lt;P&gt;index=ib_dns_summary report=si_dns_top_clients CLIENT="$member_ip" [| inputlookup nios_member_ip_lookup | fields MEMBER_IP | rename MEMBER_IP as member_ip]&lt;/P&gt;

&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:08:20 GMT</pubDate>
    <dc:creator>adecroix</dc:creator>
    <dc:date>2020-09-29T16:08:20Z</dc:date>
    <item>
      <title>Help searching a CSV file with multiple conditions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-searching-a-CSV-file-with-multiple-conditions/m-p/292691#M55756</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I spent a lot of hours to find the request I need with no success so I ask your help.&lt;/P&gt;

&lt;P&gt;My goal is to build a request with multiple fields condition values extract from a CSV.&lt;/P&gt;

&lt;P&gt;I have a CSV file with the below construction&lt;/P&gt;

&lt;P&gt;| inputlookup nios_member_ip_lookup | fields MEMBER_IP&lt;/P&gt;

&lt;P&gt;MEMBER_IP&lt;BR /&gt;
192.168.1.xx1&lt;BR /&gt;
192.168.3.xx2&lt;BR /&gt;
192.168.1.xx5&lt;BR /&gt;
192.168.1.xx7&lt;BR /&gt;
192.168.1.xx0&lt;BR /&gt;
192.168.xx.x0&lt;BR /&gt;
192.168.x.xx5&lt;BR /&gt;
192.168.x.xx0&lt;BR /&gt;
192.168.x.xx0&lt;BR /&gt;
192.168.x.xx3 &lt;/P&gt;

&lt;P&gt;Based on this result, I would have all results from each defined value for a field like:&lt;/P&gt;

&lt;P&gt;index=ib_dns_summary report=si_dns_top_clients CLIENT=@IP1 OR CLIENT=@IP2 OR CLIENT=@IP3 ...&lt;/P&gt;

&lt;P&gt;So I think I need to build a subsearch request, but I failed to do that. I tried this:&lt;/P&gt;

&lt;P&gt;index=ib_dns_summary report=si_dns_top_clients CLIENT="$member_ip" [| inputlookup nios_member_ip_lookup | fields MEMBER_IP | rename MEMBER_IP as member_ip]&lt;/P&gt;

&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-searching-a-CSV-file-with-multiple-conditions/m-p/292691#M55756</guid>
      <dc:creator>adecroix</dc:creator>
      <dc:date>2020-09-29T16:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help searching a CSV file with multiple conditions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-searching-a-CSV-file-with-multiple-conditions/m-p/292692#M55757</link>
      <description>&lt;PRE&gt;index=ib_dns_summary report=si_dns_top_clients  [| inputlookup nios_member_ip_lookup | fields MEMBER_IP | rename MEMBER_IP as CLIENT | table CLIENT | format]&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Oct 2017 23:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-searching-a-CSV-file-with-multiple-conditions/m-p/292692#M55757</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2017-10-10T23:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help searching a CSV file with multiple conditions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-searching-a-CSV-file-with-multiple-conditions/m-p/292693#M55758</link>
      <description>&lt;P&gt;Works fine, thanks a lot for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 12:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-searching-a-CSV-file-with-multiple-conditions/m-p/292693#M55758</guid>
      <dc:creator>adecroix</dc:creator>
      <dc:date>2017-10-11T12:31:34Z</dc:date>
    </item>
  </channel>
</rss>

