<?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: How to write a search to display a particular string if a certain condition is met? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208485#M60839</link>
    <description>&lt;P&gt;@ ddrillic &amp;amp; Renjith.nair , thanks alot for sharing your knowledge. Great support ! executed the query successfully . &lt;/P&gt;</description>
    <pubDate>Sat, 26 Dec 2015 03:23:52 GMT</pubDate>
    <dc:creator>Rias</dc:creator>
    <dc:date>2015-12-26T03:23:52Z</dc:date>
    <item>
      <title>How to write a search to display a particular string if a certain condition is met?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208481#M60835</link>
      <description>&lt;P&gt;If &lt;CODE&gt;AVSResponse = x&lt;/CODE&gt;, then I need to display "matched" in the dashboard report. Likewise, if I have more than 10 value to be matched.  Kindly help how I can set up the ssearch. thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 08:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208481#M60835</guid>
      <dc:creator>Rias</dc:creator>
      <dc:date>2015-12-24T08:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to display a particular string if a certain condition is met?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208482#M60836</link>
      <description>&lt;P&gt;Have you tried &lt;STRONG&gt;if&lt;/STRONG&gt; or &lt;STRONG&gt;case&lt;/STRONG&gt; from &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1/SearchReference/Commonevalfunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.1/SearchReference/Commonevalfunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval description=case(error == 404, "Not found", error == 500, "Internal Server Error", error == 200, "OK")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Dec 2015 16:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208482#M60836</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-24T16:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to display a particular string if a certain condition is met?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208483#M60837</link>
      <description>&lt;P&gt;Looks great. Just tried something like - &lt;BR /&gt;
index=iiii | eval cat=case(host == "aaaa", "customer", host == "bbbb", "customer") and it works.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 17:26:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208483#M60837</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2015-12-24T17:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to display a particular string if a certain condition is met?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208484#M60838</link>
      <description>&lt;P&gt;Be sure to accept  renjith.nair's answer of it worked for you. That way people can see what to do.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 20:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208484#M60838</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-24T20:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to display a particular string if a certain condition is met?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208485#M60839</link>
      <description>&lt;P&gt;@ ddrillic &amp;amp; Renjith.nair , thanks alot for sharing your knowledge. Great support ! executed the query successfully . &lt;/P&gt;</description>
      <pubDate>Sat, 26 Dec 2015 03:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-display-a-particular-string-if-a/m-p/208485#M60839</guid>
      <dc:creator>Rias</dc:creator>
      <dc:date>2015-12-26T03:23:52Z</dc:date>
    </item>
  </channel>
</rss>

