<?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: 'if like' help in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/if-like-help/m-p/444775#M8061</link>
    <description>&lt;P&gt;Yeah, found it in the end! Thanks for your quick reply.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2018 09:53:09 GMT</pubDate>
    <dc:creator>jacqu3sy</dc:creator>
    <dc:date>2018-09-06T09:53:09Z</dc:date>
    <item>
      <title>'if like' help</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/if-like-help/m-p/444772#M8058</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Struggling to get this to work. I'm trying to create a new field called 'severity' with specific values returned should a particular file extension be detected.&lt;/P&gt;

&lt;P&gt;Two example values would be as follows;&lt;/P&gt;

&lt;P&gt;bigdog.exe&lt;BR /&gt;
bigcat.bat&lt;/P&gt;

&lt;P&gt;With the above values then found within the field 'threat'. The logic Im trying is as follows, with the idea being that the .bat file will return a severity of high, and the .exe as low. But when trying this both come out as a low. &lt;/P&gt;

&lt;P&gt;| eval severity=if(like(threat, "*.bat"), "high", "low")&lt;/P&gt;

&lt;P&gt;I suspect the problem is something to do with the use of the asterix which is needed as the values change with the exception of the file extension, but cant work out how to fix. any ideas? Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 09:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/if-like-help/m-p/444772#M8058</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2018-09-06T09:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: 'if like' help</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/if-like-help/m-p/444773#M8059</link>
      <description>&lt;P&gt;Hi @jacqu3sy,&lt;/P&gt;

&lt;P&gt;Please try this &lt;CODE&gt;| eval severity=if(like(threat, "%.bat"), "high", "low")&lt;/CODE&gt; , for wildcard you need to use &lt;CODE&gt;%&lt;/CODE&gt; instead of &lt;CODE&gt;*&lt;/CODE&gt; with &lt;CODE&gt;like&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 09:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/if-like-help/m-p/444773#M8059</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-09-06T09:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: 'if like' help</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/if-like-help/m-p/444774#M8060</link>
      <description>&lt;P&gt;Never mind, got it to work;&lt;/P&gt;

&lt;P&gt;| eval severity=if(like(threat, "%.bat%"), "High", "Low")&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 09:52:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/if-like-help/m-p/444774#M8060</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2018-09-06T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: 'if like' help</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/if-like-help/m-p/444775#M8061</link>
      <description>&lt;P&gt;Yeah, found it in the end! Thanks for your quick reply.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 09:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/if-like-help/m-p/444775#M8061</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2018-09-06T09:53:09Z</dc:date>
    </item>
  </channel>
</rss>

