<?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: help on eval like condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/595103#M207092</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;&amp;nbsp;- Try this instead:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Kheo=case(
    match(url,"SLG"),"G",
    match(url,"SLK"),"G",
    match(url,"SLY"),"I",
    match(url,"SK"),"T",
    match(url,"SL"),"E"
    ) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------&lt;BR /&gt;I hope this helps!!! Kindly upvote if it does!!!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 05:53:22 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-04-25T05:53:22Z</dc:date>
    <item>
      <title>help on eval like condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/594989#M207049</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;In my search I use an eval command like below in order to identify character string in web url&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Kheo=case(
    like(url,"%SLG%"),"G",
    like(url,"%SLK%"),"G",
    like(url,"%SLY%"),"I",
    like(url,"%SK%"),"T",
    like(url,"%SL%"),"E"
    ) 
| search Kheo=*&lt;/LI-CODE&gt;&lt;P&gt;The problem I have is that my eval identify every url which conatains for example "SLG" letters in lowercase or uppercse&lt;/P&gt;&lt;P&gt;My need is to strictly identify URL which contains "SLG" letters in uppercase&lt;/P&gt;&lt;P&gt;I tried with match but it changes nothing&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Kheo=case(
    match(url,"SLG"),"G",&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;could you help please?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 05:42:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/594989#M207049</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-23T05:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: help on eval like condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/594992#M207051</link>
      <description>&lt;P&gt;Can you provide some examples of where this is not working?&lt;/P&gt;&lt;P&gt;This runanywhere example shows it working&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval url=split("abSLGcd,abslgcd,ab/SLG/cd,ab/slg/cd",",")
| mvexpand url
| eval kheo=case(like(url,"%SLG%"),"G")&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 23 Apr 2022 06:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/594992#M207051</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-23T06:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: help on eval like condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/595020#M207053</link>
      <description>&lt;P&gt;I dont say its not working but it doesnt work exactly like i need&lt;/P&gt;&lt;P&gt;For exemple, if i am looking for&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;eval Kheo=case(
    like(url,"%SLG%"),"G",&lt;/PRE&gt;&lt;P&gt;I dont want to display URL with lowercase like "slg" but just with uppercase like "SLG"&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 10:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/595020#M207053</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-23T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: help on eval like condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/595021#M207054</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Can you provide some examples of where this is not working?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 10:06:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/595021#M207054</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-23T10:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: help on eval like condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/595103#M207092</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;&amp;nbsp;- Try this instead:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Kheo=case(
    match(url,"SLG"),"G",
    match(url,"SLK"),"G",
    match(url,"SLY"),"I",
    match(url,"SK"),"T",
    match(url,"SL"),"E"
    ) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------&lt;BR /&gt;I hope this helps!!! Kindly upvote if it does!!!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 05:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/595103#M207092</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-25T05:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: help on eval like condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/595112#M207095</link>
      <description>&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 06:46:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-eval-like-condition/m-p/595112#M207095</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-25T06:46:26Z</dc:date>
    </item>
  </channel>
</rss>

