<?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 filter the results based on the evaluated field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619365#M215264</link>
    <description>&lt;P&gt;I'm trying the below query,&lt;/P&gt;
&lt;P&gt;index=XXXXXXXXX&amp;nbsp; &amp;nbsp;|&amp;nbsp;eval space="cf_space_name=production" | search "space"&amp;nbsp; YYYYYYYYYYYY | stats count&lt;/P&gt;
&lt;P&gt;===================================================================&lt;/P&gt;
&lt;P&gt;I want to filter the results based on the evaluated field.&lt;/P&gt;
&lt;P&gt;| search "space"&amp;nbsp; &amp;nbsp; XXXXXXXXXXXXX&amp;nbsp; &amp;nbsp; =&amp;gt; is not returning correct values&lt;/P&gt;
&lt;P&gt;|&amp;nbsp; search "cf_space_name=production"&amp;nbsp; &amp;nbsp; XXXXXXXXXXXXX&amp;nbsp; &amp;nbsp; =&amp;gt;&amp;nbsp; but If I use the value like this its working.&lt;/P&gt;
&lt;P&gt;how to fix this? Thanks for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 21:55:19 GMT</pubDate>
    <dc:creator>amerineni</dc:creator>
    <dc:date>2022-11-02T21:55:19Z</dc:date>
    <item>
      <title>How to filter the results based on the evaluated field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619365#M215264</link>
      <description>&lt;P&gt;I'm trying the below query,&lt;/P&gt;
&lt;P&gt;index=XXXXXXXXX&amp;nbsp; &amp;nbsp;|&amp;nbsp;eval space="cf_space_name=production" | search "space"&amp;nbsp; YYYYYYYYYYYY | stats count&lt;/P&gt;
&lt;P&gt;===================================================================&lt;/P&gt;
&lt;P&gt;I want to filter the results based on the evaluated field.&lt;/P&gt;
&lt;P&gt;| search "space"&amp;nbsp; &amp;nbsp; XXXXXXXXXXXXX&amp;nbsp; &amp;nbsp; =&amp;gt; is not returning correct values&lt;/P&gt;
&lt;P&gt;|&amp;nbsp; search "cf_space_name=production"&amp;nbsp; &amp;nbsp; XXXXXXXXXXXXX&amp;nbsp; &amp;nbsp; =&amp;gt;&amp;nbsp; but If I use the value like this its working.&lt;/P&gt;
&lt;P&gt;how to fix this? Thanks for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 21:55:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619365#M215264</guid>
      <dc:creator>amerineni</dc:creator>
      <dc:date>2022-11-02T21:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the results based on the evaluated field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619383#M215272</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command treats "space" with or without quotation marks as a literal string rather than a field name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;eval&lt;/FONT&gt; command assigns a value to a field, creating the field if necessary.&amp;nbsp; It does not define variables that can be used in arbitrary places.&lt;/P&gt;&lt;P&gt;To search for specific text in an event, put that text in a &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 00:12:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619383#M215272</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-03T00:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the results based on the evaluated field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619398#M215276</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;mentioned, the value in 'space' is not substituted as part of command in | search. &amp;nbsp;Can you explain why it is even necessary to use that syntax if &amp;nbsp;&lt;SPAN&gt;&lt;FONT face="andale mono,times"&gt;| search "cf_space_name=production" YYYYYYYYYYY&lt;/FONT&gt; already works?&lt;/SPAN&gt;&amp;nbsp; Maybe you are thinking of a token in dashboard?&lt;/P&gt;&lt;P&gt;(As a side, &lt;SPAN&gt;&lt;FONT face="andale mono,times"&gt;| search "cf_space_name=production" YYYYYYYYYYY&lt;/FONT&gt; &lt;/SPAN&gt;&amp;nbsp;is semantically different from&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="andale mono,times"&gt;| search cf_space_name=production YYYYYYYYYYY&lt;/FONT&gt;. &amp;nbsp;You want to consider what exactly is intended.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 05:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619398#M215276</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-11-03T05:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the results based on the evaluated field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619550#M215316</link>
      <description>&lt;P&gt;I have two inputs in the dashboard and I need to evaluate filed name and value to compare dynamically based on those inputs and filter events based on that.&amp;nbsp; That is what I'm tryign to do.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 20:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619550#M215316</guid>
      <dc:creator>amerineni</dc:creator>
      <dc:date>2022-11-03T20:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the results based on the evaluated field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619553#M215318</link>
      <description>&lt;P&gt;I hoping this was in a dashboard.&amp;nbsp; If you have an input called "space" that holds a cf_space_name value then you can reference that token in the SPL.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=XXXXXXXXX cf_space_name=$space$ YYYYYYYYYYYY 
| stats count&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Nov 2022 20:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619553#M215318</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-03T20:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the results based on the evaluated field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619587#M215329</link>
      <description>&lt;P&gt;I still don't see how&amp;nbsp;&lt;SPAN&gt;"cf_space_name=production" is a dynamic input. &amp;nbsp;In this form, it is just a static string. &amp;nbsp;Can you explain? &amp;nbsp;Maybe you can illustrate with data (anonymize as necessary)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 06:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-the-results-based-on-the-evaluated-field/m-p/619587#M215329</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-11-04T06:08:23Z</dc:date>
    </item>
  </channel>
</rss>

