<?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 can I real-time search in the range now-48h to now-24h? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287804#M87118</link>
    <description>&lt;P&gt;Can I apply the time window to _indextime instead of _time? &lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2015 00:38:10 GMT</pubDate>
    <dc:creator>hylam</dc:creator>
    <dc:date>2015-10-26T00:38:10Z</dc:date>
    <item>
      <title>How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287784#M87098</link>
      <description>&lt;P&gt;Can I real-time search for the last 48 hours and hide the results in the last 24 hours? How about now-30d to now-29d? How about now-52wk to now-52wk+1d?&lt;/P&gt;

&lt;P&gt;EDIT1&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;use case 1&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Suppose I started a screen recorder 48 hours ago and stopped it 24 hours ago. During that 24 hours I was running a real-time search picking "last 24 hours". Now I don't have that recording but I want to reconstruct that real-time search animation. It works like CCTV replay showing how the burglar was breaking in.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;use case 2
It is October now. I was given the historical data in September. I would like to show a splunk real-time search as the data was ingested in real-time. I need that animation.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;EDIT2&lt;BR /&gt;
I am running the following as a real-time search w/ "last 30 sec"&lt;/P&gt;

&lt;H1&gt;5 sec heartbeat&lt;/H1&gt;

&lt;P&gt;index=_internal | stats max(_time) as _time | eval _time=floor(_time/5)*5 &lt;/P&gt;

&lt;H1&gt;but failed to accumulate results on the screen&lt;/H1&gt;

&lt;P&gt;| eval t0=_time-86400 | eval t1=t0+300 | map search="index=_internal starttimeu=$t0$ endtimeu=$t1$"&lt;/P&gt;

&lt;P&gt;EDIT3&lt;BR /&gt;
Alternative approach&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/320184/refreshing-a-dashboard-wo-grey-waiting-for-data.html" target="_blank"&gt;https://answers.splunk.com/answers/320184/refreshing-a-dashboard-wo-grey-waiting-for-data.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;EDIT4&lt;BR /&gt;
Case 193187 - "Replay" command&lt;BR /&gt;
&lt;A href="http://wiki.splunk.com/Community:ERs" target="_blank"&gt;http://wiki.splunk.com/Community:ERs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287784#M87098</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2020-09-29T07:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287785#M87099</link>
      <description>&lt;P&gt;You should be able to get what you need from this Q&amp;amp;A:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/148842/timechart-with-time-x-axis-delineated-in-t-minutes-before-now.html"&gt;https://answers.splunk.com/answers/148842/timechart-with-time-x-axis-delineated-in-t-minutes-before-now.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If so, add a comment with your final solution; if not, also add a comment to clarify your question.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 14:20:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287785#M87099</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-24T14:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287786#M87100</link>
      <description>&lt;P&gt;You are changing the labels on the time axis only, which is NOT what I asked for. I need the time range of the search to change in real-time.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 14:39:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287786#M87100</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-24T14:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287787#M87101</link>
      <description>&lt;P&gt;IMHO, you have not clearly explained exactly what you need.  Given this, it should not surprise you that people who are trying to help you will misunderstand you.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 14:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287787#M87101</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-24T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287788#M87102</link>
      <description>&lt;P&gt;thx. i have rephrased the question&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 15:24:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287788#M87102</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-24T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287789#M87103</link>
      <description>&lt;P&gt;Your desire makes little sense to me.  The entire point of real-time is to have events which have "just happened" to be displayed instantly.  Real-Time searches are &lt;EM&gt;incredibly&lt;/EM&gt; expensive (locks a core on every server).  In any case, to do the amazingly-expensive and strange thing that you said, you should be able to use this question to create a new timepicker value (I am not sure why "now" is greyed out in "latest" for "real-time" in the timepicker but it is):&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/33093/defining-a-real-time-search-window.html"&gt;https://answers.splunk.com/answers/33093/defining-a-real-time-search-window.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try adding this setting:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rt-yesterdayish]
label = Real-Time Yesterday but not Today
earliest_time = rt-2d
latest_time = rt-1d
order = 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Oct 2015 15:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287789#M87103</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-24T15:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287790#M87104</link>
      <description>&lt;P&gt;So I take your question to mean you want to search from "now" to -n Hours / Days / Months? Real time searches are typically windows for last 30 seconds / 1 minute and continually run within those windows. Anything over that should be evaluated as historical searches, not 'real-time'. However, operationally these are generally considered real-time up to about 10 minutes. But I digress.&lt;/P&gt;

&lt;P&gt;So do you want to see this in the search bar? As a saved search? As a dashboard? Your question has a lot different variables but your not defining what you want concretely.&lt;/P&gt;

&lt;P&gt;1) So as a dashboard..&lt;/P&gt;

&lt;P&gt;You can create a multi-input dashboard, and define earliest.time( -1d@d, -1w@w, -72d@d) and latest.time (now, -1m@m, -1h@h) and then run your search.&lt;/P&gt;

&lt;P&gt;2) Saved searches&lt;BR /&gt;
Create a saved search for every time division, and mail /view results&lt;/P&gt;

&lt;P&gt;3) Manual searches. &lt;BR /&gt;
Run the search, use the visual browser to zoom into the desired time windows.&lt;/P&gt;

&lt;P&gt;There are at 3 methods to accomplish similar things you are describing.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 15:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287790#M87104</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-10-24T15:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287791#M87105</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Your desire makes little sense to me&lt;BR /&gt;
I have added 2 use cases above.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sat, 24 Oct 2015 16:04:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287791#M87105</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-24T16:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287792#M87106</link>
      <description>&lt;P&gt;Please see the edit. I need that real-time search animation on historical data.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 16:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287792#M87106</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-24T16:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287793#M87107</link>
      <description>&lt;P&gt;I retract my negative (and pesumptive) comments.  Your use cases are very intriguing and I actually might need to do this sometime!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 21:39:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287793#M87107</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-24T21:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287794#M87108</link>
      <description>&lt;P&gt;Did this solution not work?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 21:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287794#M87108</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-24T21:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287795#M87109</link>
      <description>&lt;P&gt;Not work.&lt;/P&gt;

&lt;P&gt;C:\opt\splunk\etc\apps\search\local\times.conf&lt;/P&gt;

&lt;P&gt;I have added your stanza. But I have not found the new choice under the time picker under all 6 folders. I have tried &lt;A href="http://localhost:8000/debug/refresh"&gt;http://localhost:8000/debug/refresh&lt;/A&gt; and restarting the server.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 23:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287795#M87109</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-24T23:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287796#M87110</link>
      <description>&lt;P&gt;Now you get my CCTV use case. If I get the splunk CCTV playback working at 1x speed, I should start looking for the fast motion and slow motion buttons. You know the 2x 4x 8x and the 0.5x 0.25x 0.125x speeds.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2015 00:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287796#M87110</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-25T00:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287797#M87111</link>
      <description>&lt;P&gt;Please see EDIT3 for an alternative approach.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2015 01:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287797#M87111</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-25T01:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287798#M87112</link>
      <description>&lt;P&gt;Please see EDIT3 for an alternative approach.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2015 01:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287798#M87112</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-25T01:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287799#M87113</link>
      <description>&lt;P&gt;I understand youe use case.  I had an Enhancement Request in to Splunk for this same functionality.  I'm about to close that ER as soon as I actually test and confirm that SA-Eventgen can do what I need, but it's readme indicates it should be able to.&lt;/P&gt;

&lt;P&gt;Here's &lt;A href="http://blogs.splunk.com/2013/07/31/an-easy-way-to-generate-sample-data/"&gt;a blog post&lt;/A&gt; about how to use &lt;A href="https://github.com/splunk/eventgen"&gt;SA-Eventgen&lt;/A&gt;.  Read through the description, note especially:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Added replay mode to allow us to replay a file from another Splunk instance to a new Splunk instance, leaking out events with proper time spaced between them to make it look like they are being generated in real time.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I have not yet actually tried it but there shouldn't be any issues doing it "from" and "to" the same Splunk instance.  &lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2015 12:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287799#M87113</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-10-25T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287800#M87114</link>
      <description>&lt;P&gt;Thx. Let me take a look at it. I have also considered writing a python script to read historical log and do throttled output according to the timestamps. Splunk will than tail follow the throttled output. After each run I will clean eventdata. Of course I could playback at 2x 4x 8x.&lt;/P&gt;

&lt;P&gt;One way to do it with a single splunk instance would be reading from index=history and writing to index=playback. After each playback I would clean eventdata index=playback. The real-time search dashboard should be reading from index=playback.&lt;/P&gt;

&lt;P&gt;The "refresh dashboard panel w/o grey msg" should be useful in a number of use cases, including this one.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2015 13:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287800#M87114</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-25T13:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287801#M87115</link>
      <description>&lt;P&gt;Great, let us know what you find out, I think there are several interested persons following this thread now.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2015 14:04:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287801#M87115</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-10-25T14:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287802#M87116</link>
      <description>&lt;P&gt;Can SA-eventgen do throttled playback at historical timestamps w/o replacing it at current timestamp?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2015 14:06:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287802#M87116</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-10-25T14:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I real-time search in the range now-48h to now-24h?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287803#M87117</link>
      <description>&lt;P&gt;Regardless of your approach you need to be very careful about one thing: The view that you get by shifting a real-time window back in time to "watch it again" might not be the same as the view when it went by the first time.  Consider the case of a 5-minute real-time window going from &lt;CODE&gt;rt-5m&lt;/CODE&gt; to &lt;CODE&gt;now&lt;/CODE&gt; and another from &lt;CODE&gt;rt-10m&lt;/CODE&gt; to &lt;CODE&gt;rt-5m&lt;/CODE&gt;.  Now imagine that you have some events with latency of 7 minutes.  These will show in the second window but not the first one.  This kind of problem is FAR more likely to happen with shorter windows that the 1-day ones that you are investigating but it is something that you need to beware.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2015 22:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-real-time-search-in-the-range-now-48h-to-now-24h/m-p/287803#M87117</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-25T22:36:15Z</dc:date>
    </item>
  </channel>
</rss>

