<?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 use eval and asterisk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-and-asterisk/m-p/296029#M89312</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;How to use asterisk in the eval case search? I have to assign a value to the IP ranges. &lt;/P&gt;

&lt;P&gt;for Ip range 1.2.*  - Low&lt;BR /&gt;
for Ip range 3.4.*  - Medium&lt;BR /&gt;
for IP range 5.*  - High&lt;/P&gt;

&lt;P&gt;I tried below search, its not working&lt;BR /&gt;
search | eval case(src_ip=1.2.* , "Low", src_ip=3.4.* ,"Medium", src_ip=5.*. "High")&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:24:43 GMT</pubDate>
    <dc:creator>kiran331</dc:creator>
    <dc:date>2020-09-29T13:24:43Z</dc:date>
    <item>
      <title>How to use eval and asterisk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-and-asterisk/m-p/296029#M89312</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;How to use asterisk in the eval case search? I have to assign a value to the IP ranges. &lt;/P&gt;

&lt;P&gt;for Ip range 1.2.*  - Low&lt;BR /&gt;
for Ip range 3.4.*  - Medium&lt;BR /&gt;
for IP range 5.*  - High&lt;/P&gt;

&lt;P&gt;I tried below search, its not working&lt;BR /&gt;
search | eval case(src_ip=1.2.* , "Low", src_ip=3.4.* ,"Medium", src_ip=5.*. "High")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-and-asterisk/m-p/296029#M89312</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2020-09-29T13:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use eval and asterisk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-and-asterisk/m-p/296030#M89313</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search | eval case(like(src_ip, "1.2.%"), "Low", like(src_ip, "3.4.%") ,"Medium", like(src_ip, "5._%.%"), "High")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-and-asterisk/m-p/296030#M89313</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-28T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use eval and asterisk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-and-asterisk/m-p/296031#M89314</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 15:33:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-and-asterisk/m-p/296031#M89314</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2017-03-28T15:33:42Z</dc:date>
    </item>
  </channel>
</rss>

