<?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 Splunk dashboard search parameter- How to get exact date? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/650816#M53349</link>
    <description>&lt;P&gt;I have a dashboard that shows the APIs called over a particular period and get the success rate based on the response status, but I need to also get the success rate of that API over the past two weeks (last week, last two weeks) on the exact date, but I've been having issues getting that. This is my current search parameter. Any help on how to get this will be appreciated.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Index="Main"  |  stats count(eval(in(response_status, "200", "201", "202","203","204","205",....,"307","308", "0") and severity="Audit")) AS Success_count, count(eval(in(response_status,"400",...,"451"))) AS Backend_4XX, count(eval(in(response_status, "0") and severity="Exception")) AS L7_Error, count(eval(in(response_status, "500",...,"511"))) AS Backend_5XX BY API | eval Total = Success_count + (Backend_4XX + Backend_5XX + L7_Error), Success_Rate=round(Success_count/Total*100,2) | Table API Total Success_count L7_Error Backend_4XX Backend_5XX Success_Rate | sort API | search Success_Rate=*&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 18 Jul 2023 20:11:52 GMT</pubDate>
    <dc:creator>Teemanny</dc:creator>
    <dc:date>2023-07-18T20:11:52Z</dc:date>
    <item>
      <title>Splunk dashboard search parameter- How to get exact date?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/650816#M53349</link>
      <description>&lt;P&gt;I have a dashboard that shows the APIs called over a particular period and get the success rate based on the response status, but I need to also get the success rate of that API over the past two weeks (last week, last two weeks) on the exact date, but I've been having issues getting that. This is my current search parameter. Any help on how to get this will be appreciated.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Index="Main"  |  stats count(eval(in(response_status, "200", "201", "202","203","204","205",....,"307","308", "0") and severity="Audit")) AS Success_count, count(eval(in(response_status,"400",...,"451"))) AS Backend_4XX, count(eval(in(response_status, "0") and severity="Exception")) AS L7_Error, count(eval(in(response_status, "500",...,"511"))) AS Backend_5XX BY API | eval Total = Success_count + (Backend_4XX + Backend_5XX + L7_Error), Success_Rate=round(Success_count/Total*100,2) | Table API Total Success_count L7_Error Backend_4XX Backend_5XX Success_Rate | sort API | search Success_Rate=*&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Jul 2023 20:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/650816#M53349</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-18T20:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/650819#M53350</link>
      <description>&lt;P&gt;Your initial stats command has no time element to it so any notion of when the events happened has been lost. you could try preceding it with a bin command to allocate the events to different time bins and base your stats on that (as well as API)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 12:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/650819#M53350</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-17T12:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/650823#M53351</link>
      <description>&lt;P&gt;I am new to Splunk and kind of need help in getting this done. How do I&amp;nbsp;&lt;SPAN&gt;add the time&amp;nbsp;&lt;/SPAN&gt;command?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 13:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/650823#M53351</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-17T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/650825#M53352</link>
      <description>&lt;LI-CODE lang="markup"&gt;Index="Main" | bin _time span=1w |  stats count(eval(in(response_status, "200", "201", "202","203","204","205",....,"307","308", "0") and severity="Audit")) AS Success_count, count(eval(in(response_status,"400",...,"451"))) AS Backend_4XX, count(eval(in(response_status, "0") and severity="Exception")) AS L7_Error, count(eval(in(response_status, "500",...,"511"))) AS Backend_5XX BY API _time&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Jul 2023 13:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/650825#M53352</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-17T13:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651037#M53373</link>
      <description>&lt;P&gt;Thank you for the response. So, I want to have data for this week and the same set of data for the exact time last week, how do I get the add the field for last week&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 17:54:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651037#M53373</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-18T17:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651077#M53377</link>
      <description>&lt;P&gt;How are you defining the time range for your search currently?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 07:32:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651077#M53377</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-19T07:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651113#M53381</link>
      <description>&lt;P&gt;I currently use the default time element in the Splunk search but figured that won't work. I am currently trying to use the Splunk search to get the success rate for today and last week. I have been stuck on getting this done for a few days. How do I incorporate the _time and get the data for this week and last week in the same data table. I want to have Success_count and Success_count_lastweek in the same table.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 12:24:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651113#M53381</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-19T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651115#M53383</link>
      <description>&lt;P&gt;The timeframe for the search is available to the search through the addinfo command, also the timeframe for the search can be modified by the search, so combining these two, you could do something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your initial search&amp;gt; [| makeresults | addinfo | eval row=mvrange(0,2) | mvexpand row | eval earliest=info_min_time - (7 * 24 * 60 * 60 * row) | eval latest=info_max_time - (7 * 24 * 60 * 60 * row) | table earliest latest]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jul 2023 12:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651115#M53383</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-19T12:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651129#M53386</link>
      <description>&lt;P&gt;It failed to display a result, plus I want the result to show in the table below beside the current valuesas Success_count lastweek L7_Errorlastweek and others.&lt;/P&gt;&lt;P&gt;P.S: The screenshot currently shows the data I get now&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunk screen.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26343i951D5C23357C314C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Splunk screen.PNG" alt="Splunk screen.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 14:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651129#M53386</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-19T14:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651136#M53389</link>
      <description>&lt;P&gt;Please share the full search you used for that table.&lt;/P&gt;&lt;P&gt;Also, you should look at using timewrap to get 7 days earlier&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 15:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651136#M53389</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-19T15:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651138#M53391</link>
      <description>&lt;P&gt;index="l7" | rename service_resolutionUri as API | stats count(eval(in(response_status, "200", "201", "202","203","204","205","206","207","208","226","300","301","302","303","304","305","306","307","308", "0") and severity="Audit")) AS Success_count, count(eval(in(response_status,"400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","421","422","423","424","425","426","426","428","429","431","451"))) AS Backend_4XX, count(eval(in(response_status, "0") and severity="Exception")) AS L7_Error, count(eval(in(response_status, "500","501","502","503","504","505","506","507","508","510","511"))) AS Backend_5XX BY API | eval Total = Success_count + (Backend_4XX + Backend_5XX + L7_Error), Success_Rate=round(Success_count/Total*100,2) | table API Total Success_count L7_Error Backend_4XX Backend_5XX Success_Rate&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 15:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651138#M53391</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-19T15:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651141#M53393</link>
      <description>&lt;P&gt;Try something like this (not 100% on whether I have the syntax right):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="l7" [| makeresults | addinfo | eval row=mvrange(0,2) | mvexpand row | eval earliest=info_min_time - (7 * 24 * 60 * 60 * row) | eval latest=info_max_time - (7 * 24 * 60 * 60 * row) | table earliest latest]
| bin _time span=1w
| rename service_resolutionUri as API | stats count(eval(in(response_status, "200", "201", "202","203","204","205","206","207","208","226","300","301","302","303","304","305","306","307","308", "0") and severity="Audit")) AS Success_count, count(eval(in(response_status,"400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","421","422","423","424","425","426","426","428","429","431","451"))) AS Backend_4XX, count(eval(in(response_status, "0") and severity="Exception")) AS L7_Error, count(eval(in(response_status, "500","501","502","503","504","505","506","507","508","510","511"))) AS Backend_5XX BY API _time
| eval Total = Success_count + (Backend_4XX + Backend_5XX + L7_Error), Success_Rate=round(Success_count/Total*100,2) | table _time API Total Success_count L7_Error Backend_4XX Backend_5XX Success_Rate
| timewrap 1w&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jul 2023 15:41:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651141#M53393</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-19T15:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651142#M53394</link>
      <description>&lt;P&gt;Based on the frequency of the result set, we can decide on span time in the bin command to project the relevant time in the results.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 16:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651142#M53394</guid>
      <dc:creator>ManishS</dc:creator>
      <dc:date>2023-07-19T16:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651300#M53402</link>
      <description>&lt;P&gt;Thank you for your help. I want the API field to remain same while the other field changes. The current display API last week and times out after a few minutes&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 12:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651300#M53402</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-20T12:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651302#M53403</link>
      <description>&lt;P&gt;Can you share the exact query which is timing out?&lt;/P&gt;&lt;P&gt;Can you open the search in a separate window and show what time values are being used?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 13:04:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651302#M53403</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-20T13:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651318#M53404</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Teemanny_0-1689863432376.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26374i409C4CDD9CCCD0E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Teemanny_0-1689863432376.png" alt="Teemanny_0-1689863432376.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The API name should remain same while other values have an append of today and last week and it should produce more than one result.&lt;/P&gt;&lt;P&gt;The idea is I'm trying to get the APIs called this moment and show the total,success_count,success_rate..... for today and exact same data for this time last week.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651318#M53404</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-20T14:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651322#M53405</link>
      <description>&lt;P&gt;If you want more than one result, remove the timewrap command&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651322#M53405</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-20T15:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651325#M53406</link>
      <description>&lt;P&gt;I didn't get the values for last week&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651325#M53406</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-20T15:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651334#M53407</link>
      <description>&lt;P&gt;But you got two rows?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651334#M53407</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-20T15:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard search parameter</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651477#M53420</link>
      <description>&lt;P&gt;No. I didn't...it reverted to the data I had previously, not showing the data for last week&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 12:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-search-parameter-How-to-get-exact-date/m-p/651477#M53420</guid>
      <dc:creator>Teemanny</dc:creator>
      <dc:date>2023-07-21T12:16:57Z</dc:date>
    </item>
  </channel>
</rss>

