<?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: serach not working with input csv in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26237#M5050</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
Thanks for that. It didn't work. But i have made some changes to the search and it seems to be working now (but need to validate it)&lt;BR /&gt;
&lt;PRE&gt;index="apache_logs" |search [| inputlookup services | fields channels ]&lt;/PRE&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Dec 2011 23:14:23 GMT</pubDate>
    <dc:creator>KarunK</dc:creator>
    <dc:date>2011-12-04T23:14:23Z</dc:date>
    <item>
      <title>serach not working with input csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26233#M5046</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a input lookup file called "services" and I need to search all values of a field (channels) from that csv file to a new search. I am using append for this.&lt;/P&gt;

&lt;P&gt;Here is my search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="apache_logs" | append [ inputlookup services | fields channels ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the problem is I tried to validate the search by using the following, which is adding all the  values of the field - channels using OR  and i am getting different results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="apache_logs" channel1 OR channel2 OR channel3 .....OR channel25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Am i doing anything wrong here ?&lt;/P&gt;

&lt;P&gt;Thanks fro your help.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 06:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26233#M5046</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2011-12-01T06:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: serach not working with input csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26234#M5047</link>
      <description>&lt;P&gt;I'm struggling to understand the question. Maybe it's just me missing the meaning but I don't understand - could you explain the problem more clearly? Do you want to append the results from the services CSV rather than just use it for filtering the search?&lt;/P&gt;

&lt;P&gt;I'm guessing you mean &lt;CODE&gt;| append [|inputlookup services | fields channels]&lt;/CODE&gt; (with the &lt;CODE&gt;|&lt;/CODE&gt; before &lt;CODE&gt;inputlookup&lt;/CODE&gt;), otherwise Splunk would throw an error.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 07:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26234#M5047</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-12-01T07:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: serach not working with input csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26235#M5048</link>
      <description>&lt;P&gt;I am trying to use the fields for filtering the search.&lt;/P&gt;

&lt;P&gt;I want to search the index="apache_logs" with all the values of the field "channels" from lookup "services".&lt;/P&gt;

&lt;P&gt;It would give me a result equivalent to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="apache_logs" channel1 OR channel2 OR channel3 .....OR channel25
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2011 22:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26235#M5048</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2011-12-01T22:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: serach not working with input csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26236#M5049</link>
      <description>&lt;P&gt;Based on your goal it sounds like you shouldn't be using &lt;CODE&gt;append&lt;/CODE&gt; at all. &lt;CODE&gt;append&lt;/CODE&gt; is used for adding search results to the ones that are already there. It does not filter those search results.&lt;/P&gt;

&lt;P&gt;Just remove &lt;CODE&gt;| append&lt;/CODE&gt; and you should be good to go:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="apache_logs" [| inputlookup services | fields channels ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Dec 2011 06:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26236#M5049</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-12-02T06:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: serach not working with input csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26237#M5050</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Thanks for that. It didn't work. But i have made some changes to the search and it seems to be working now (but need to validate it)&lt;BR /&gt;
&lt;PRE&gt;index="apache_logs" |search [| inputlookup services | fields channels ]&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2011 23:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26237#M5050</guid>
      <dc:creator>KarunK</dc:creator>
      <dc:date>2011-12-04T23:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: serach not working with input csv</title>
      <link>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26238#M5051</link>
      <description>&lt;P&gt;That query is in practice identical to the one I wrote, so if one works but not the other that's kind of odd.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2011 23:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/serach-not-working-with-input-csv/m-p/26238#M5051</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-12-04T23:17:42Z</dc:date>
    </item>
  </channel>
</rss>

