<?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 How to reference a tagged field from an eval command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185203#M53379</link>
    <description>&lt;P&gt;We've tagged our hosts which we can search for by 'tag::host', but how do we reference that field from an eval command? Do we first need to rename it or is there a direct way?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Aug 2014 09:47:09 GMT</pubDate>
    <dc:creator>gilescope</dc:creator>
    <dc:date>2014-08-18T09:47:09Z</dc:date>
    <item>
      <title>How to reference a tagged field from an eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185203#M53379</link>
      <description>&lt;P&gt;We've tagged our hosts which we can search for by 'tag::host', but how do we reference that field from an eval command? Do we first need to rename it or is there a direct way?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 09:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185203#M53379</guid>
      <dc:creator>gilescope</dc:creator>
      <dc:date>2014-08-18T09:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a tagged field from an eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185204#M53380</link>
      <description>&lt;P&gt;Hi gilescope,&lt;/P&gt;

&lt;P&gt;this is possible. I used a tag called &lt;CODE&gt;foo-box&lt;/CODE&gt; for a special host and if you search like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search here | where 'tag::host'="foo-box"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can use it without any problem.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 10:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185204#M53380</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-08-18T10:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a tagged field from an eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185205#M53381</link>
      <description>&lt;P&gt;Yes this works for search, but I want to include the tag::host field in an eval expression.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 10:40:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185205#M53381</guid>
      <dc:creator>gilescope</dc:creator>
      <dc:date>2014-08-18T10:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a tagged field from an eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185206#M53382</link>
      <description>&lt;P&gt;well &lt;CODE&gt;where&lt;/CODE&gt; is an eval command .... can you provide an example of yours which does not work?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 12:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185206#M53382</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-08-18T12:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a tagged field from an eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185207#M53383</link>
      <description>&lt;P&gt;ah yes. single quotes is perfect. I tried double quotes but that turns out as a string constant.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 14:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reference-a-tagged-field-from-an-eval-command/m-p/185207#M53383</guid>
      <dc:creator>gilescope</dc:creator>
      <dc:date>2014-08-18T14:14:51Z</dc:date>
    </item>
  </channel>
</rss>

