Splunk Search

Start time search in splunk

Nixon1023
New Member

How can I have a start time on my search, so that it starts every time reflecting the current time. I want to display a line chart/graph showing the beginning of my search as it progresses over time. My command so far is this......

source="/var/log/scenario1.log" | timechart span=5s max(host_bandwidth) by host

Tags (1)
0 Karma
1 Solution

Chubbybunny
Splunk Employee
Splunk Employee

per http://www.splunk.com/base/Documentation/latest/User/RealtimeSearch
under the section 'Specify real-time time range windows':

The syntax for real-time time modifers is:

rt[+|-]<time_integer><time_unit>@<time_unit>

You can find more information about the syntax for time modifiers in the topic, Change the time range of your search.

http://www.splunk.com/base/Documentation/4.2.1/User/ChangeTheTimeRangeOfYourSearch

View solution in original post

Chubbybunny
Splunk Employee
Splunk Employee

per http://www.splunk.com/base/Documentation/latest/User/RealtimeSearch
under the section 'Specify real-time time range windows':

The syntax for real-time time modifers is:

rt[+|-]<time_integer><time_unit>@<time_unit>

You can find more information about the syntax for time modifiers in the topic, Change the time range of your search.

http://www.splunk.com/base/Documentation/4.2.1/User/ChangeTheTimeRangeOfYourSearch

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...