<?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: Comparing data based on user-selected options from a dropdown menu. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677546#M55494</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264867"&gt;@Gauri&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 11:39:19 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-02-14T11:39:19Z</dc:date>
    <item>
      <title>Comparing data based on user-selected options from a dropdown menu.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677374#M55477</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"I need to create a dashboard with two queries in one dashboard, one query having a fixed time range of "Today" and the other query needs to select "earliest and latest" from the drop down. The data dropdown will have two values "Yesterday" and "last week". Last week is the day from last week (if today is Feb 13, last week should show data from Feb Feb 06)"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;for.eg&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;index="abc" sourcetype="Prod_logs"&lt;BR /&gt;| stats count(transactionId) AS TotalRequest (***earliest and latest needs to be derived as per user selection from drop down)&lt;BR /&gt;| appendcols [search index="abc" sourcetype="Prod_logs" earliest=@d&amp;nbsp; latest=now (****Today's data****)&lt;BR /&gt;| stats count(transactionId) AS TotalRequest]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 08:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677374#M55477</guid>
      <dc:creator>Gauri</dc:creator>
      <dc:date>2024-02-13T08:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data based on user-selected options from a dropdown menu.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677377#M55478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264867"&gt;@Gauri&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in the dropdown list insert the following fixed choices:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;earliest=-d@d
earliest=-w@w&lt;/LI-CODE&gt;&lt;P&gt;then in the search use the dropdown token:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="abc" sourcetype="Prod_logs" $token$ latest=now
| eval day=if(strftime(_time,"%Y-%m-%d")=strftime(now(),"%Y-%m-%d"),"Today","Previous")
| stats count(transactionId) AS TotalRequest BY day&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 09:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677377#M55478</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-13T09:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data based on user-selected options from a dropdown menu.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677379#M55479</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="dropdown" token="timeperiod" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select day&amp;lt;/label&amp;gt;
      &amp;lt;choice value="earliest=-1d@d latest=@d"&amp;gt;Yesterday&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="earliest=-7d@d latest=-6d@d"&amp;gt;Last week&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Then use the $timeperiod$ token in your first search&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 09:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677379#M55479</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-13T09:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data based on user-selected options from a dropdown menu.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677539#M55491</link>
      <description>&lt;P&gt;How can I get the complete date time format for both the queries in graph,&amp;nbsp;&lt;/P&gt;&lt;P&gt;for eg.&lt;/P&gt;&lt;P&gt;index="abc" sourcetype="Prod_logs"&lt;BR /&gt;| eval "yesterday_datetime_formatted" = strftime(_time,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| stats count(transactionId) AS TotalRequest by&amp;nbsp;yesterday_datetime_formatted URI (***earliest and latest needs to be derived as per user selection from drop down)&lt;BR /&gt;appendcols [search index="abc" sourcetype="Prod_logs" earliest=xxx, latest=now&lt;BR /&gt;| eval "Today_datetime_formatted" = strftime(_time,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| stats count(transactionId) AS TotalRequest by Today_datetime_formatted URI]&lt;/P&gt;&lt;P&gt;| fields "yesterday_datetime_formatted"&amp;nbsp; "Today_datetime_formatted"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 09:09:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677539#M55491</guid>
      <dc:creator>Gauri</dc:creator>
      <dc:date>2024-02-14T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data based on user-selected options from a dropdown menu.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677540#M55492</link>
      <description>&lt;P&gt;Please give us a mock-up of what your desired output would look like&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 09:38:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677540#M55492</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-14T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data based on user-selected options from a dropdown menu.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677544#M55493</link>
      <description>&lt;P&gt;Below query is what I am trying to execute, In the Statistics I am getting the data correctly with correct dates but in graph I am getting same date for both Yesterday &amp;amp; Today.&lt;/P&gt;&lt;P&gt;for.eg. Today is 14th and Yesterday is 13th,&amp;nbsp; I am getting the date 13th in Visualization for both the days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="abc" sourcetype="Prod_logs" (***earliest and latest needs to be derived as per user selection from drop down)&lt;BR /&gt;| eval "yesterday_datetime_formatted" = strftime(_time,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| stats count(transactionId) AS TotalRequest by "yesterday_datetime_formatted" URI&lt;BR /&gt;| eval "Uptime SLI" = *****some formula*****,&lt;BR /&gt;"Latency SLI Yesterday" = *****some formula*****&lt;BR /&gt;appendcols [search index="abc" sourcetype="Prod_logs" earliest=@d, latest=now&lt;BR /&gt;| eval "Today_datetime_formatted" = strftime(_time,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| stats count(transactionId) AS TotalRequest by "Today_datetime_formatted" URI&lt;BR /&gt;| eval "Uptime SLI" = *****some formula*****,&lt;BR /&gt;"Latency SLI Today" = *****some formula*****&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;| fields "today_datetime_formatted" "Latency SLI Today" "yesterday_datetime_formatted" "Latency SLI Yesterday"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 10:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677544#M55493</guid>
      <dc:creator>Gauri</dc:creator>
      <dc:date>2024-02-14T10:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data based on user-selected options from a dropdown menu.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677546#M55494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264867"&gt;@Gauri&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 11:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677546#M55494</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-14T11:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing data based on user-selected options from a dropdown menu.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677548#M55495</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Please give us a mock-up of what your desired output would look like&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 11:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Comparing-data-based-on-user-selected-options-from-a-dropdown/m-p/677548#M55495</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-14T11:57:50Z</dc:date>
    </item>
  </channel>
</rss>

