Splunk Search

How to scroll through a log file to see what happened just before an event of interest?

bow
Engager

A common trouble shooting scenario is to log onto a machine, examine logs until you find something of interest and then look at the log files just before the interesting event occured.
Whilst I understand how to find the item of interest using Splunk, how do you scroll through a log file to see what happened just before the event?

Also is it possible to download the raw log file (not the event list) ?

Thanks

Tags (4)

chris
Motivator

Hi bow

One easy way although not very automated way is to use the "Show Source" entry in the "Event Actions" context menu
Context Menu

Another question similar to yours has been asked here:

http://answers.splunk.com/answers/2602/can-splunk-filtermatch-events-and-bring-back-neighbouring-eve...

You might get lucky with a combination of localize and map(Documentation of localize😞

error | localize | map search="search starttimeu::$starttime$ endtimeu::$endtime$

I don't know of a way to export the entire source once search is limited to not show all the events.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...