<?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: use where command with a variable that can we get from input text field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112543#M23588</link>
    <description>&lt;P&gt;thank you for your respons it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2015 12:47:49 GMT</pubDate>
    <dc:creator>otman01</dc:creator>
    <dc:date>2015-07-10T12:47:49Z</dc:date>
    <item>
      <title>use where command with a variable that can we get from input text field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112539#M23584</link>
      <description>&lt;P&gt;hi, &lt;BR /&gt;
how can we use where command with a variable that can we get from input text field&lt;/P&gt;

&lt;P&gt;&amp;lt;searchTemplate&amp;gt;&lt;BR /&gt;
| where  product =$product$ &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            &amp;lt;input type="text" token="product "&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 09:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112539#M23584</guid>
      <dc:creator>otman01</dc:creator>
      <dc:date>2015-07-10T09:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: use where command with a variable that can we get from input text field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112540#M23585</link>
      <description>&lt;P&gt;You are using it right but you can take a look at this &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Viz/tokens&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You probably need to change | where product =$product$ -&amp;gt; | where product ="$product$"&lt;/P&gt;

&lt;P&gt;And the token field in input should not contain the space after product, token="product " -&amp;gt; token="product"&lt;/P&gt;

&lt;P&gt;Try that and report, glad i could help&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 10:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112540#M23585</guid>
      <dc:creator>joao_amorim</dc:creator>
      <dc:date>2015-07-10T10:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: use where command with a variable that can we get from input text field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112541#M23586</link>
      <description>&lt;P&gt;yes, I tried it, but the query doesn't return any result. this is my query :&lt;/P&gt;

&lt;P&gt;|dbquery "db_sales" "SELECT model, year, product,  FROM cars c , product p where v.product=p.idproduct"&lt;BR /&gt;&lt;BR /&gt;
  | fields  model, year,  pays, product| where product="$product$"&lt;BR /&gt;
any ideas&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 10:21:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112541#M23586</guid>
      <dc:creator>otman01</dc:creator>
      <dc:date>2015-07-10T10:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: use where command with a variable that can we get from input text field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112542#M23587</link>
      <description>&lt;P&gt;Just a guess, but try &lt;CODE&gt;search&lt;/CODE&gt; instead of &lt;CODE&gt;where&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 11:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112542#M23587</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-07-10T11:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: use where command with a variable that can we get from input text field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112543#M23588</link>
      <description>&lt;P&gt;thank you for your respons it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 12:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/use-where-command-with-a-variable-that-can-we-get-from-input/m-p/112543#M23588</guid>
      <dc:creator>otman01</dc:creator>
      <dc:date>2015-07-10T12:47:49Z</dc:date>
    </item>
  </channel>
</rss>

