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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...