<?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: Eval Condition Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Eval-Condition-Search/m-p/479309#M134338</link>
    <description>&lt;P&gt;Thank you much @manjunathmeti !&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2020 08:10:49 GMT</pubDate>
    <dc:creator>kpavan</dc:creator>
    <dc:date>2020-04-23T08:10:49Z</dc:date>
    <item>
      <title>Eval Condition Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-Condition-Search/m-p/479307#M134336</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Am looking for conditional eval search for my results, could you please help me with correct query.&lt;/P&gt;

&lt;P&gt;index=myindex source="&lt;EM&gt;access&lt;/EM&gt;" api="sendverification?email=*&amp;amp;op=passwordrecovery" OR api="*reset-password.html" OR api="*updatepassword" response_code=200 OR response_code=400&lt;BR /&gt;
| eval API=case(api LIKE "%op=passwordrecovery", "Request Password Reset", api LIKE "%reset-password.html", "Email Link", api LIKE "%updatepassword", "updatepassword")&lt;BR /&gt;
| chart count by API&lt;/P&gt;

&lt;P&gt;but api=updatepassword has response_code 200(success) and 400(failure), i need to display api updatepassword, response_code 200 as success and api updatepassword, response_code 400 as failure&lt;/P&gt;

&lt;P&gt;as result i need display all four api account with count like&lt;/P&gt;

&lt;P&gt;Date, API, Count&lt;BR /&gt;
2020-04-22, Request Password Reset, 10&lt;BR /&gt;
2020-04-22, Email Link, 5&lt;BR /&gt;
2020-04-22, Success, 9&lt;BR /&gt;
2020-04-22, Failure, 1&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
Pavan&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-Condition-Search/m-p/479307#M134336</guid>
      <dc:creator>kpavan</dc:creator>
      <dc:date>2020-09-30T05:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Eval Condition Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-Condition-Search/m-p/479308#M134337</link>
      <description>&lt;P&gt;hi @kpavan,&lt;/P&gt;

&lt;P&gt;Try this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex source="access" api="sendverification?email=*&amp;amp;op=passwordrecovery" OR api="*reset-password.html" OR api="*updatepassword" response_code=200 OR response_code=400
| eval API=case(like(api, "%op=passwordrecovery"), "Request Password Reset", like(api, "%reset-password.html"), "Email Link", like(api, "%updatepassword"), if(response_code == 200, "Success", "Failure"))
| chart count by API
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2020 16:06:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-Condition-Search/m-p/479308#M134337</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-04-22T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Eval Condition Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-Condition-Search/m-p/479309#M134338</link>
      <description>&lt;P&gt;Thank you much @manjunathmeti !&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 08:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-Condition-Search/m-p/479309#M134338</guid>
      <dc:creator>kpavan</dc:creator>
      <dc:date>2020-04-23T08:10:49Z</dc:date>
    </item>
  </channel>
</rss>

