<?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: Using where condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-where-condition/m-p/100953#M26077</link>
    <description>&lt;P&gt;You can't use subqueries inside a where condition. You should probably setup value.csv as a lookup in Splunk - it would make what you are doing &lt;EM&gt;much&lt;/EM&gt; easier.&lt;/P&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.1/Knowledge/Addfieldsfromexternaldatasources"&gt;Lookup Fields from External Data Sources&lt;/A&gt; for more info&lt;/P&gt;</description>
    <pubDate>Mon, 26 Mar 2012 14:30:38 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-03-26T14:30:38Z</dc:date>
    <item>
      <title>Using where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-where-condition/m-p/100952#M26076</link>
      <description>&lt;P&gt;source="D:\SplunkLogs\status.log" |search data|rex field=_raw "control\s(?&lt;MYVALUE&gt;.*)" |stats values(myvalue)|where myvalue="append&lt;BR /&gt;
[| inputlookup value.csv | where Values="BB"|stats values(ID)]"&lt;/MYVALUE&gt;&lt;/P&gt;

&lt;P&gt;This is how my file is&lt;/P&gt;

&lt;P&gt;status.log                             value.csv&lt;/P&gt;

&lt;P&gt;myvalue  Data                          value  Id&lt;BR /&gt;&lt;BR /&gt;
100004   xxxxx                          BB    10003 &lt;BR /&gt;
100005   xxxxx                          AA    100005&lt;BR /&gt;
10003 &lt;/P&gt;

&lt;P&gt;this is the search query i was trying to fetch data related to myvalue from status log file using value from another csv file but its not working.How to use subqueries inside a where condition or wether it is possible in Splunk.Please help&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2012 12:05:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-where-condition/m-p/100952#M26076</guid>
      <dc:creator>john</dc:creator>
      <dc:date>2012-03-26T12:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-where-condition/m-p/100953#M26077</link>
      <description>&lt;P&gt;You can't use subqueries inside a where condition. You should probably setup value.csv as a lookup in Splunk - it would make what you are doing &lt;EM&gt;much&lt;/EM&gt; easier.&lt;/P&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.1/Knowledge/Addfieldsfromexternaldatasources"&gt;Lookup Fields from External Data Sources&lt;/A&gt; for more info&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2012 14:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-where-condition/m-p/100953#M26077</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-03-26T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-where-condition/m-p/100954#M26078</link>
      <description>&lt;P&gt;I don't know offhand whether it's possible directly in "where" like your example, but I would achieve this with a lookup table.  By tying the value.csv lookup table to your search, a new field (say "text_id") would be in the returned results, then your where condition could read "where text_id="AA"".&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2012 14:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-where-condition/m-p/100954#M26078</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-03-26T14:40:39Z</dc:date>
    </item>
  </channel>
</rss>

