Splunk Search

Does specifying real-time earliest/latest values in the search bar work for anyone?

blurblebot
Communicator

Following the example described on http://www.splunk.com/base/Documentation/4.1/User/RealtimeSearch#Expected_performance_and_known_limi..., I've tried to give the search bar multiple "rt" values lifted straight from the listed examples, but always get the error that my values are invalid.

Example:

For the search: "source="localhost" earliest=rt-30s latest=rt"

the error bar appears:

"Invalid value "rt-30s" for time term "earliest""

Also, enableRealtimeSearch=true in my indexes.conf

Thank you

-Steve

1 Solution

landen99
Motivator

landen99
Motivator
source="localhost" earliest=rt-30 latest=rt

from: http://answers.splunk.com/answers/40885/querying-a-real-time-search.html

steveyz
Splunk Employee
Splunk Employee

Those values are not designed to be used from within the search language. They are configuration values in that you can specify them in times.conf (to add options to the Time Range Picker), or in the saved search dialog, or if you were directly using the REST API to access the splunk backend search engine.

The documentation is not clear about this and needs to be updated.

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 ...