<?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 create a condition statement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-condition-statement/m-p/415351#M119592</link>
    <description>&lt;P&gt;Is there a possibility in Splunk to get data like below :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;If a condition is true then that data is to be printed in table 

If (a $lt; b)

eval c=round(((b-a)/b)*100),0)

print c (in table format)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or else just a message on full screen that with "no change".&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2019 13:15:56 GMT</pubDate>
    <dc:creator>dkdeepshikhaa</dc:creator>
    <dc:date>2019-06-07T13:15:56Z</dc:date>
    <item>
      <title>How to create a condition statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-condition-statement/m-p/415351#M119592</link>
      <description>&lt;P&gt;Is there a possibility in Splunk to get data like below :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;If a condition is true then that data is to be printed in table 

If (a $lt; b)

eval c=round(((b-a)/b)*100),0)

print c (in table format)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or else just a message on full screen that with "no change".&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:15:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-condition-statement/m-p/415351#M119592</guid>
      <dc:creator>dkdeepshikhaa</dc:creator>
      <dc:date>2019-06-07T13:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a condition statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-condition-statement/m-p/415352#M119593</link>
      <description>&lt;P&gt;@dkdeepshikhaa if there are multiple events in your query your conditional evaluation will be based on each event. You can get no change text in table with below query-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt;| eval var=round(((b-a)/b)*100),0) | eval c = if(a&amp;lt;b,var,"no change") | table c
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-condition-statement/m-p/415352#M119593</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-06-07T13:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a condition statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-condition-statement/m-p/415353#M119594</link>
      <description>&lt;P&gt;Looks duplicate of&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/751381/if-else-with-where-clause.html#answer-750800"&gt;https://answers.splunk.com/answers/751381/if-else-with-where-clause.html#answer-750800&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 15:58:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-condition-statement/m-p/415353#M119594</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-06-07T15:58:36Z</dc:date>
    </item>
  </channel>
</rss>

