<?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: Yesterday data dashboard filtering - in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700659#M237724</link>
    <description>&lt;P&gt;Depending on how you have "removed" the timewrap command you could have a token which starts and ends a comment (```)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo 
$comment$ [| makeresults
| fields - _time
| addinfo
| eval day=mvrange(0,2)
| mvexpand day
| eval earliest=relative_time(info_min_time,"-".day."d")
| eval latest=relative_time(info_max_time,"-".day."d")
| fields earliest latest] $comment$
| timechart span=1m sum(value) as value | eval _time=_time
$comment$ | timewrap 1d $comment$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 13:32:18 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-10-01T13:32:18Z</dc:date>
    <item>
      <title>Yesterday data dashboard filtering -</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700656#M237721</link>
      <description>&lt;P&gt;An extension of this:&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Looking-at-yesterdays-data-but-need-to-filter-the-data-to-only/m-p/696758#M236798" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/Looking-at-yesterdays-data-but-need-to-filter-the-data-to-only/m-p/696758#M236798&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a dashboard on the above with an input that adds the timewrap line when the option is selected yes and nothing when the option is selected no.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am having is when no is selected, the graph looks like the following when I select smaller time windows. Below I selected 4 hours but how can I only show the last 4 hours and not the previous window.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-01 at 13.48.49.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32883iC19708E3950ABE2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-01 at 13.48.49.png" alt="Screenshot 2024-10-01 at 13.48.49.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot 2024-10-01 at 13.48.49.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query is as follows:&lt;BR /&gt;&lt;BR /&gt;index=foo&amp;nbsp;&lt;BR /&gt;[| makeresults&lt;BR /&gt;| fields - _time&lt;BR /&gt;| addinfo&lt;BR /&gt;| eval day=mvrange(0,2)&lt;BR /&gt;| mvexpand day&lt;BR /&gt;| eval earliest=relative_time(info_min_time,"-".day."d")&lt;BR /&gt;| eval latest=relative_time(info_max_time,"-".day."d")&lt;BR /&gt;| fields earliest latest]&lt;BR /&gt;| timechart span=1m sum(value) as value | eval _time=_time&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 12:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700656#M237721</guid>
      <dc:creator>nelesama</dc:creator>
      <dc:date>2024-10-01T12:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Yesterday data dashboard filtering -</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700659#M237724</link>
      <description>&lt;P&gt;Depending on how you have "removed" the timewrap command you could have a token which starts and ends a comment (```)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo 
$comment$ [| makeresults
| fields - _time
| addinfo
| eval day=mvrange(0,2)
| mvexpand day
| eval earliest=relative_time(info_min_time,"-".day."d")
| eval latest=relative_time(info_max_time,"-".day."d")
| fields earliest latest] $comment$
| timechart span=1m sum(value) as value | eval _time=_time
$comment$ | timewrap 1d $comment$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 13:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700659#M237724</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-01T13:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Yesterday data dashboard filtering -</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700662#M237725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The token element works well but when no has been selected from the filter, nothing extra is added to the code. I was wondering how I can stop the graph from being split in two when no is selected&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 13:42:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700662#M237725</guid>
      <dc:creator>nelesama</dc:creator>
      <dc:date>2024-10-01T13:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Yesterday data dashboard filtering -</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700666#M237727</link>
      <description>&lt;P&gt;What happens when you tried my solution?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 13:56:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700666#M237727</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-01T13:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Yesterday data dashboard filtering -</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700689#M237739</link>
      <description>&lt;P&gt;Ahh I see what you mean.&lt;/P&gt;&lt;P&gt;Never though to use the comment like that and several times.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 16:23:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Yesterday-data-dashboard-filtering/m-p/700689#M237739</guid>
      <dc:creator>nelesama</dc:creator>
      <dc:date>2024-10-01T16:23:32Z</dc:date>
    </item>
  </channel>
</rss>

