Monitoring Splunk

How to search events happened before a particular statement in the log file.

shashank1903
New Member

Hi,

We are using SPLUNK in our organization (I work for AT&T) and I need to know how do I search any events before a statement in the log file. E.g. we have a statement in the log file - "Agent Table Change, Verifying FT State" and I want to find all the events happened before the first incidence of this statement in the log file.

Please help on this.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You're looking for localize with a timebefore of some value and a timeafter of zero, piped into map. See http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/localize for reference.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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