Logfire Livetail Search

Livetail provides a powerful search capability to filter and find specific log entries based on key-value pairs present in the logs.

Search Bar

The search bar allows you to enter search queries to filter the displayed logs:

  • Clicking on the search bar opens a dropdown with suggested filters based on the keys present in the logs
  • Each suggested filter shows the key name and its data type (string, boolean, etc.)
  • Typing in the search bar updates the filter suggestions in real-time

Filter Suggestions

When a suggested filter is clicked, it opens a query builder with options tailored to the data type of the selected key:

  • For string values: = (equals), != (not equals), : (contains), !: (does not contain)
  • For boolean values: = (equals), != (not equals)

The query builder allows you to specify the desired value for the selected key to filter the logs.

Direct Filter Entry

In addition to selecting filters from the suggestions, you can directly type filter expressions into the search bar:

  • Entering key=value will automatically open the query builder with the specified key and value
  • For the message key, you can perform a free text search by typing the search term and pressing Enter or clicking Search

Chaining Filters

Multiple filters can be chained together to create more complex queries. Simply add additional filters using the search bar or query builder. The logs will be filtered based on the combination of all applied filters.

Saving Searches

Once you have applied the desired filters, you can save the search for later use:

  • Click the “Save Search” button to save the current set of filters
  • Provide a name for the saved search
  • Saved searches can be accessed and managed from the Views page

Using saved searches allows you to quickly apply frequently used filter combinations without the need to recreate them each time.

Start exploring your logs by utilizing the search bar, filter suggestions, query builder, and saved searches to efficiently find the information you need!