<?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 Help with Dashboard Form Chart Overlay based on Time Range Picker in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-with-Dashboard-Form-Chart-Overlay-based-on-Time-Range/m-p/184963#M11421</link>
    <description>&lt;P&gt;I would like to build a chart to compare errors from a specific time range to another. In this example a baseline day from the past and a day there was an event. The user can choose two time ranges and I want to show them a comparison as an overlay.  I'm struggling with how to set the time modifier variable. I saw that you can do something like this - &lt;CODE&gt;|eval basetime=8 |eval evtime=1 | eval diff=basetime-evtime&lt;/CODE&gt; to get a difference, but I am not sure how to get the values to do the diff on. I believe I need to get the number of days difference between the earliest of the baseline timerange (assuming it is in the past) and the earliest of the 'Event' time range. Then I would plug this value in the formula for the time modification (creates the overlay)&lt;CODE&gt;|eval _time=_time+60*60*24*diff&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
index=myindex earliest=$time2.earliest$ latest=$time2.latest$ sourcetype=mysourcetype | bucket _time span=1hr | stats count by _time | eval ReportKey="Event" &lt;BR /&gt;
|append [search index=myindex earliest=$time1.earliest$ latest=$time1.latest$ sourcetype=mysourcetype | bucket _time span=1hr | stats count by _time |eval ReportKey="Baseline"&lt;BR /&gt;
|eval _time=_time+60*60*24*diff] | timechart values(count) by ReportKey&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Does anyone have any idea how this could be done?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:13:13 GMT</pubDate>
    <dc:creator>jgbricker</dc:creator>
    <dc:date>2020-09-28T19:13:13Z</dc:date>
    <item>
      <title>Help with Dashboard Form Chart Overlay based on Time Range Picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-with-Dashboard-Form-Chart-Overlay-based-on-Time-Range/m-p/184963#M11421</link>
      <description>&lt;P&gt;I would like to build a chart to compare errors from a specific time range to another. In this example a baseline day from the past and a day there was an event. The user can choose two time ranges and I want to show them a comparison as an overlay.  I'm struggling with how to set the time modifier variable. I saw that you can do something like this - &lt;CODE&gt;|eval basetime=8 |eval evtime=1 | eval diff=basetime-evtime&lt;/CODE&gt; to get a difference, but I am not sure how to get the values to do the diff on. I believe I need to get the number of days difference between the earliest of the baseline timerange (assuming it is in the past) and the earliest of the 'Event' time range. Then I would plug this value in the formula for the time modification (creates the overlay)&lt;CODE&gt;|eval _time=_time+60*60*24*diff&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
index=myindex earliest=$time2.earliest$ latest=$time2.latest$ sourcetype=mysourcetype | bucket _time span=1hr | stats count by _time | eval ReportKey="Event" &lt;BR /&gt;
|append [search index=myindex earliest=$time1.earliest$ latest=$time1.latest$ sourcetype=mysourcetype | bucket _time span=1hr | stats count by _time |eval ReportKey="Baseline"&lt;BR /&gt;
|eval _time=_time+60*60*24*diff] | timechart values(count) by ReportKey&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Does anyone have any idea how this could be done?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-with-Dashboard-Form-Chart-Overlay-based-on-Time-Range/m-p/184963#M11421</guid>
      <dc:creator>jgbricker</dc:creator>
      <dc:date>2020-09-28T19:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Dashboard Form Chart Overlay based on Time Range Picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Help-with-Dashboard-Form-Chart-Overlay-based-on-Time-Range/m-p/184964#M11422</link>
      <description>&lt;P&gt;The timewrap app works nicely &lt;A href="https://splunkbase.splunk.com/app/1645/"&gt;https://splunkbase.splunk.com/app/1645/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 12:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Help-with-Dashboard-Form-Chart-Overlay-based-on-Time-Range/m-p/184964#M11422</guid>
      <dc:creator>jgbricker</dc:creator>
      <dc:date>2016-01-22T12:40:54Z</dc:date>
    </item>
  </channel>
</rss>

