Skip to main content
Splunk Lantern

Error and failure events on a host

You might need to search host logs for error and failure events when doing the following:

Prerequisites 

In order to execute this procedure in your environment, the following data, services, or apps are required:

Example

While metrics help you isolate which hosts are having problems and when those problems began, logs and events generally contain information needed to get to the true cause of the issue. You want to use Splunk to isolate logs and events coming from the host and look for any common indicators of trouble such as “error” or “failed”.

To optimize the search shown below, you should specify an index and a time range. 

  1. Run the following search: 
    host=* sourcetype=* (error OR fail*) 
    

Search explanation

The table provides an explanation of what each part of this search achieves. You can adjust this query based on the specifics of your environment.

Splunk Search Explanation
host=* Search any host in your deployment.
sourcetype=* (error OR fail*) Search any source type in your deployment.
(error OR fail*) Search for error or failure events.

Result

These search results give you easy and quick visibility into which hosts and data sources you need to investigate.

  • Was this article helpful?