<?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 include date wise success and failures for comparison in table format in the dashboard? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347545#M102929</link>
    <description>&lt;UL&gt;
&lt;LI&gt;The time period is for each day where bin _time span=1d&lt;/LI&gt;
&lt;LI&gt;To get 5 days you can add earliest=-5d@d latest=@d after bin command.&lt;/LI&gt;
&lt;LI&gt; i have created a newfield to display desired result, fields -newfield removes that field once the output is achieved.&lt;/LI&gt;
&lt;LI&gt;Please accept the answer and upvote if this worked for you!!&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2018 11:53:38 GMT</pubDate>
    <dc:creator>deepashri_123</dc:creator>
    <dc:date>2018-03-14T11:53:38Z</dc:date>
    <item>
      <title>How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347537#M102921</link>
      <description>&lt;P&gt;Below query is working fine But i want to include date wise success and failures for comparison.&lt;/P&gt;

&lt;P&gt;(index="x") AND (host="y") status &amp;gt; 199 AND status &amp;lt; 400&lt;BR /&gt;
| stats count as Success BY application, methodPath | join methodPath type=left &lt;BR /&gt;
[search (index="x") AND (host="y") status &amp;gt; 400&lt;BR /&gt;
| stats count as Failures BY application, methodPath] | table application, methodPath, Success, Failures | sort by Success DESC | sort by Failures DESC&lt;/P&gt;

&lt;P&gt;My table should like.&lt;/P&gt;

&lt;P&gt;application, methodPath, Success(3/09/2018), Failures(3/09/2018), Success(3/10/2018), Failures(3/10/2018) etc.&lt;/P&gt;

&lt;P&gt;Or application, methodPath, 3/09/2018 -Success, Failures, 3/10/2018 Success, Failures.&lt;/P&gt;

&lt;P&gt;Any better way also welcome.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 12:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347537#M102921</guid>
      <dc:creator>guru89044</dc:creator>
      <dc:date>2018-03-13T12:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347538#M102922</link>
      <description>&lt;P&gt;There is no need for that join, you can do that in one shot:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="x") AND (host="y")
| stats sum(eval(if(status &amp;gt; 199 AND status &amp;lt; 400,1,0))) as Success, sum(eval(if(status&amp;gt;400,1,0))) as Failures BY application, methodPath 
| sort by Success DESC 
| sort by Failures DESC
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if it worked for you&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 13:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347538#M102922</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-13T13:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347539#M102923</link>
      <description>&lt;P&gt;sorry. No. My ask is to find the date wise failures and success. Please let me how to add date wise success and failures in table format in the dashboard. Thanks for query without join but failure/success count of my query vs your query didn't match.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:49:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347539#M102923</guid>
      <dc:creator>guru89044</dc:creator>
      <dc:date>2018-03-13T14:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347540#M102924</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; (index="x") AND (host="y")
| bucket _time
 | stats sum(eval(if(status &amp;gt; 199 AND status &amp;lt; 400,1,0))) as Success, sum(eval(if(status&amp;gt;400,1,0))) as Failures BY application, methodPath, _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347540#M102924</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-13T14:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347541#M102925</link>
      <description>&lt;P&gt;Hey guru 89044,&lt;/P&gt;

&lt;P&gt;You can try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="X" AND HOST="Y" status=* 
| bin _time span=1d 
| eval time=strftime(_time,"%d-%m-%Y") 
| eval newfield=application.+":".+methodPath 
| chart useother=f sum(eval(if(status&amp;gt;199 AND status&amp;lt;400,1,0))) as success sum(eval(if(status&amp;gt;400,1,0))) as failure OVER newfield by time 
| rex field=newfield "(?&amp;lt;application&amp;gt;[^\:]+)\:(?&amp;lt;methodPath&amp;gt;.*)" 
| fields- newfield 
| table application methodPath * 
| rename failure:* as *:failure success:* as *:success
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if this helps!!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 08:57:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347541#M102925</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2018-03-14T08:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347542#M102926</link>
      <description>&lt;P&gt;no..it didn't work.  Why the result(success and failure count) of your query  is not matching with my query? Also time taken by your query to display the result is more. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 10:16:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347542#M102926</guid>
      <dc:creator>guru89044</dc:creator>
      <dc:date>2018-03-14T10:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347543#M102927</link>
      <description>&lt;P&gt;@guru89044 &lt;BR /&gt;
Did you try this query?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 10:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347543#M102927</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2018-03-14T10:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347544#M102928</link>
      <description>&lt;P&gt;Cool!!!!!!!!!! at least I am getting the results  way i want.  What time its considering while filtering the counts? is it From midnight to midnight?  What parameter i need to change in the query itself to get x days(5 days) result for comparison?  it takes lot of time, is it due to eval ?  what does | fields- newfield does?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 11:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347544#M102928</guid>
      <dc:creator>guru89044</dc:creator>
      <dc:date>2018-03-14T11:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347545#M102929</link>
      <description>&lt;UL&gt;
&lt;LI&gt;The time period is for each day where bin _time span=1d&lt;/LI&gt;
&lt;LI&gt;To get 5 days you can add earliest=-5d@d latest=@d after bin command.&lt;/LI&gt;
&lt;LI&gt; i have created a newfield to display desired result, fields -newfield removes that field once the output is achieved.&lt;/LI&gt;
&lt;LI&gt;Please accept the answer and upvote if this worked for you!!&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 11:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347545#M102929</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2018-03-14T11:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347546#M102930</link>
      <description>&lt;P&gt;@deepashri_123 &lt;CODE&gt;earliest=-5d@d latest=@d&lt;/CODE&gt; should be added in the base search before the bin command.&lt;BR /&gt;
Also stats can be used upfront after span=1d and eval can be performed on aggregated data per day to make it faster.&lt;BR /&gt;
Adding &lt;CODE&gt;limit=0&lt;/CODE&gt; or some max upper limit(if known) to chart command would be safer bet.&lt;BR /&gt;
Finally, as per the output in the request rex for field segregation is not required:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="X" AND HOST="Y"  status="*" application=* methodPath=*
| bin _time span=1d
| stats count(eval(status&amp;gt;199 AND status&amp;lt;300)) as Success count(eval(status&amp;gt;299 AND status&amp;lt;600)) as Failure by application methodPath  _time
| eval key=application.":".methodPath
| eval time=strftime(_time,"%Y/%m/%d")
| fields - _time application methodPath
| chart limit=0 useother=f sum(Success) as Success sum(Failure) as Failure over key by time
| rename "Failure: *" as "*(Failure)"
| rename "Success: *" as "*(Success)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Changing time format to &lt;CODE&gt;%Y/%m/%d&lt;/CODE&gt; instead of &lt;CODE&gt;%d/%m/%Y&lt;/CODE&gt; so that output is sorted correctly for string time.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 13:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347546#M102930</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-14T13:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347547#M102931</link>
      <description>&lt;P&gt;Hey@niketnilay,&lt;BR /&gt;
I agree with you , stats should have been used , and i was trying to implement that itself but that was not giving the desired output. If this query gives desired output to guru89044 than the problem will be solved.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 05:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347547#M102931</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2018-03-15T05:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347548#M102932</link>
      <description>&lt;P&gt;@deepashri_123 @niketnilay &lt;BR /&gt;
great. Thank you very much guys.  I modified original query a bit as per niketnilay. Worked fine.   &lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 07:46:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347548#M102932</guid>
      <dc:creator>guru89044</dc:creator>
      <dc:date>2018-03-15T07:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347549#M102933</link>
      <description>&lt;P&gt;@guru89044, glad you found it working. Do up vote the comment if it helped!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 08:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347549#M102933</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-15T08:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347550#M102934</link>
      <description>&lt;P&gt;done. I was not aware there is option of upvote for comment also thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 08:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347550#M102934</guid>
      <dc:creator>guru89044</dc:creator>
      <dc:date>2018-03-15T08:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347551#M102935</link>
      <description>&lt;P&gt;@deepashri_123 @niketnilay &lt;BR /&gt;
May i know how to get the same result for 2 different date ranges?&lt;/P&gt;

&lt;P&gt;i,e Success and failures count from march 1st to march 5th and from mar 6th to Mar10th.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 10:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347551#M102935</guid>
      <dc:creator>guru89044</dc:creator>
      <dc:date>2018-03-15T10:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347552#M102936</link>
      <description>&lt;P&gt;Since you do not have time on x-axis and do not want time overlay could you please explain reason for the dates as to why 1st to 5th and 6th to 10th?&lt;/P&gt;

&lt;P&gt;You can use &lt;CODE&gt;date_wday!="sunday"&lt;/CODE&gt; along with &lt;CODE&gt;earliest&lt;/CODE&gt; and &lt;CODE&gt;latest&lt;/CODE&gt; time selector.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347552#M102936</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-15T13:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347553#M102937</link>
      <description>&lt;P&gt;@niketnilay sure. I am testing X release for A duration and y release for B duration.  Now i want to compare the count of  failures of X release vs Y release. &lt;/P&gt;

&lt;P&gt;Also please let me know if any better tutorial available for splunk. &lt;BR /&gt;
Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 05:02:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347553#M102937</guid>
      <dc:creator>guru89044</dc:creator>
      <dc:date>2018-03-16T05:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to include date wise success and failures for comparison in table format in the dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347554#M102938</link>
      <description>&lt;P&gt;@guru89044, sorry I missed this question, you should check out following blog for overlaying time series...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2012/02/19/compare-two-time-ranges-in-one-report.html"&gt;https://www.splunk.com/blog/2012/02/19/compare-two-time-ranges-in-one-report.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You would want to use &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Multisearch"&gt;multisearch&lt;/A&gt; command or &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Appendcols"&gt;appendcol&lt;/A&gt; command instead of append.&lt;/P&gt;

&lt;P&gt;You should also check out &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timewrap"&gt;timewrap&lt;/A&gt; command available from Splunk 6.5 and above.&lt;/P&gt;

&lt;P&gt;For learning Splunk you can check out Splunk Fundamentals course and some of other free elearning courses on Splunk Education. Splunk Docs and Splunk Dev are good documentation and tutorial sites. You can also check out Splunk How To channel on Youtube and Splunk Blogs.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 02:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-date-wise-success-and-failures-for-comparison-in/m-p/347554#M102938</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-03T02:51:32Z</dc:date>
    </item>
  </channel>
</rss>

