<?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 pick the status what i wish to in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479941#M192953</link>
    <description>&lt;P&gt;its not working as expected.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2020 15:18:54 GMT</pubDate>
    <dc:creator>pench2k19</dc:creator>
    <dc:date>2020-03-03T15:18:54Z</dc:date>
    <item>
      <title>How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479933#M192945</link>
      <description>&lt;P&gt;I have table with 3 field values as follows&lt;/P&gt;

&lt;P&gt;SOR Datafeed Status&lt;BR /&gt;
1art xxx Met SLA&lt;BR /&gt;
1art yyy Missed SLA&lt;BR /&gt;
1art zzz Met SLA&lt;/P&gt;

&lt;P&gt;Now i would like to consider status of SOR as Missed SLA if it has one single status as Missed SLA , and alo there is come cases where i dont see Missed SLA status in that case it has be calculated as Met SLA.&lt;/P&gt;

&lt;P&gt;Can you please help me guys&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 14:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479933#M192945</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-02-27T14:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479934#M192946</link>
      <description>&lt;P&gt;@pench2k19 &lt;/P&gt;

&lt;P&gt;Can you please share your sample search, data and expected output from that data?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479934#M192946</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-02-28T11:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479935#M192947</link>
      <description>&lt;P&gt;Hi @pench2k19&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;cases where i dont see Missed SLA status in that case it has be calculated as Met SLA&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;You can do this with a &lt;CODE&gt;eval Status=if(blah)&lt;/CODE&gt; but &lt;CODE&gt;coalesce()&lt;/CODE&gt; is a good fit here&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search|eval Status=coalesce(Status,"Met SLA")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first part of your question I'm not 100% sure what you mean...&lt;/P&gt;

&lt;P&gt;Do you mean: "if any value of SOR, has a status of Missed SLA, then display it in the table"?&lt;BR /&gt;
in which case something like this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search|eval Status=coalesce(Status,"Met SLA")|where Status="Missed SLA"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It might help if you can share some of your search, or rephrase the question.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:23:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479935#M192947</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-28T11:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479936#M192948</link>
      <description>&lt;P&gt;@nickhillscpl  thanks for the comment.&lt;/P&gt;

&lt;P&gt;I have few data feeds that share common SOR name. For example if any ONE data feed have status as Missed SLA , I want to calculate that whold SOR that data feeds belongs to as Missed SLA.&lt;/P&gt;

&lt;P&gt;If all of the datafeeds have Met SLA , i want to calculate that SOR as Met SLA.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 12:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479936#M192948</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-03-02T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479937#M192949</link>
      <description>&lt;P&gt;Ok, so there are a few ways I can think of, but building on my previous answer..&lt;/P&gt;

&lt;P&gt;If you sorted 'Status' in z-a order, you could then dedup each SOR. This would give you one row for each SOR, and would show the "Missed SLA" value if one existed. If no SLA's were missed, you would get a table of "Met SLA"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt;
|eval Status=coalesce(Status,"Met SLA")
|sort - Status
|dedup SOR
|table SOR Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 12:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479937#M192949</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-03-02T12:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479938#M192950</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt; here is the query i am using, But this is not working as expected&lt;/P&gt;

&lt;P&gt;|inputlookup MBDA_SLA_stats.csv &lt;BR /&gt;
| dedup SOR feed timestamp &lt;BR /&gt;
| eval status=if(timestamp_epoch&amp;gt;Expected_time_epoch,"Missed SLA","Met SLA")&lt;BR /&gt;
| chart last(status) by  Business_Date SOR useother=f limit=50 | fillnull value="Not Run" &lt;BR /&gt;
|sort - Business_Date &lt;BR /&gt;
|rename Business_Date as "Business Date"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:26:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479938#M192950</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-09-30T04:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479939#M192951</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;  i can not apply dedup SOR as it nullifying all other results for other dates as well, following is there what i have developed so far, but its not working as expected.&lt;/P&gt;

&lt;P&gt;|inputlookup MBDA_SLA_stats.csv &lt;BR /&gt;
| dedup SOR feed timestamp &lt;BR /&gt;
| eval status=if(timestamp_epoch&amp;gt;Expected_time_epoch,"Missed SLA","Met SLA")&lt;BR /&gt;
| chart last(status) by  Business_Date SOR useother=f limit=50 | fillnull value="Not Run" &lt;BR /&gt;
|sort - Business_Date &lt;BR /&gt;
|rename Business_Date as "Business Date"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479939#M192951</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-09-30T04:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479940#M192952</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup MBDA_SLA_stats.csv
| dedup SOR feed timestamp
| eval status=if(timestamp_epoch&amp;gt;Expected_time_epoch,"Missed SLA","Met SLA")
|eval status=coalesce(status,"Met SLA")
|sort - status
|dedup SOR
| chart last(status) by Business_Date SOR useother=f limit=50 | fillnull value="Not Run"
|sort - Business_Date
|rename Business_Date as "Business Date"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd be tempted to remove the double &lt;CODE&gt;dedup&lt;/CODE&gt;, but since this is coming from a lookup the performance impact is likely negligible.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:09:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479940#M192952</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-03-02T13:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479941#M192953</link>
      <description>&lt;P&gt;its not working as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 15:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479941#M192953</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-03-03T15:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick the status what i wish to</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479942#M192954</link>
      <description>&lt;P&gt;in what way?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 15:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pick-the-status-what-i-wish-to/m-p/479942#M192954</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-03-03T15:29:08Z</dc:date>
    </item>
  </channel>
</rss>

