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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...