<?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 using variables in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-using-variables/m-p/266056#M175745</link>
    <description>&lt;P&gt;That did do it.  Data is coming from a drop down input on a dashboard.&lt;BR /&gt;
If you post it as an answer I can accept it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2017 21:31:20 GMT</pubDate>
    <dc:creator>lakromani</dc:creator>
    <dc:date>2017-01-31T21:31:20Z</dc:date>
    <item>
      <title>Search using variables</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-using-variables/m-p/266054#M175743</link>
      <description>&lt;P&gt;This should be trivial to do, but I am not able to search using variables.&lt;/P&gt;

&lt;P&gt;Eks this works&lt;BR /&gt;
&lt;CODE&gt;some splunk data | search direction="out"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But this does not:&lt;BR /&gt;
&lt;CODE&gt;some splunk data | eval test="out" | search direction="$test$"&lt;/CODE&gt;&lt;BR /&gt;
nor this:&lt;BR /&gt;
&lt;CODE&gt;some splunk data | eval test="out" | search direction=$test$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What do I do wrong.  Search google, but did not find and working solution.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 20:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-using-variables/m-p/266054#M175743</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2017-01-31T20:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search using variables</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-using-variables/m-p/266055#M175744</link>
      <description>&lt;P&gt;What is the requirement here? From where this variable should come from? If it's a field from same search, you can use like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;some splunk data | eval test="out" | where direction=test
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jan 2017 20:41:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-using-variables/m-p/266055#M175744</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-31T20:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Search using variables</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-using-variables/m-p/266056#M175745</link>
      <description>&lt;P&gt;That did do it.  Data is coming from a drop down input on a dashboard.&lt;BR /&gt;
If you post it as an answer I can accept it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 21:31:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-using-variables/m-p/266056#M175745</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2017-01-31T21:31:20Z</dc:date>
    </item>
  </channel>
</rss>

