<?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 Using Eval to Filter Values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582842#M202976</link>
    <description>&lt;P&gt;Hello Splunkers -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to filter any value that is wrapped in $, such as $host$or $value$.&amp;nbsp; I thought the below would work, but it is not.&amp;nbsp; Can someone point out what I am doing wrong?&amp;nbsp; Thanks!&lt;BR /&gt;&lt;BR /&gt;| eval dollar_sign=if(host_value=="$host$" OR host_value=="$value$", "yes", "no")&lt;BR /&gt;| search NOT dollar_sign=yes&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 23:40:29 GMT</pubDate>
    <dc:creator>jason_hotchkiss</dc:creator>
    <dc:date>2022-01-27T23:40:29Z</dc:date>
    <item>
      <title>Using Eval to Filter Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582842#M202976</link>
      <description>&lt;P&gt;Hello Splunkers -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to filter any value that is wrapped in $, such as $host$or $value$.&amp;nbsp; I thought the below would work, but it is not.&amp;nbsp; Can someone point out what I am doing wrong?&amp;nbsp; Thanks!&lt;BR /&gt;&lt;BR /&gt;| eval dollar_sign=if(host_value=="$host$" OR host_value=="$value$", "yes", "no")&lt;BR /&gt;| search NOT dollar_sign=yes&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 23:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582842#M202976</guid>
      <dc:creator>jason_hotchkiss</dc:creator>
      <dc:date>2022-01-27T23:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Eval to Filter Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582843#M202977</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval dollar_sign=IF(LIKE(host_value, "$%$"), "yes", "no")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Jan 2022 01:27:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582843#M202977</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-01-28T01:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Eval to Filter Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582872#M202986</link>
      <description>&lt;P&gt;If you are using this in a dashboard, the dollar signs have to be doubled up otherwise it is looking for tokens&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval dollar_sign=if(host_value=="$$host$$" OR host_value=="$$value$$", "yes", "no")
| search NOT dollar_sign=yes&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Jan 2022 08:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582872#M202986</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-28T08:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Eval to Filter Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582927#M202996</link>
      <description>&lt;P&gt;This solved my use case.&amp;nbsp; Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 13:56:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582927#M202996</guid>
      <dc:creator>jason_hotchkiss</dc:creator>
      <dc:date>2022-01-28T13:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Eval to Filter Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582928#M202997</link>
      <description>&lt;P&gt;I will keep this in mind if I end up using this in a dashboard.&amp;nbsp; Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 13:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Eval-to-Filter-Values/m-p/582928#M202997</guid>
      <dc:creator>jason_hotchkiss</dc:creator>
      <dc:date>2022-01-28T13:57:30Z</dc:date>
    </item>
  </channel>
</rss>

