Skip to content

5.3. Log viewer

Search the logs of every application together and analyse them with a range of filters.

The log viewer screen

Overview

The Log viewer screen lets you search and read the logs of every application in one place. A log is a record of an event that occurred in an application.

Combine keyword search, level filters, source filters and attribute filters to find the logs you want quickly, and read how log volume moved over time from the log message pattern trend chart.

Unlike the logs tab on an individual application's detail page, this screen is useful for looking at several applications' logs at once, or for searching every application for a particular error message.

Open it from the Log viewer menu in the left sidebar.

Log collection sources

Logs are collected from two sources.

SourceDescription
OTELLogs the application sends directly through the OpenTelemetry SDK
ContainerStandard output and standard error logs collected automatically by the container runtime

Screen layout

The log viewer screen is made up of three areas.

AreaDescription
Top headerThe page title and the application filters
Attribute filter panel (left)Detailed filters based on log attributes
Main content areaThe search bar, the filter controls, the trend chart and the log message list

Top header

The application filters at the top of the screen set the scope of applications to query. You can specify it by namespace, category or application name. With no filter set, every application's logs are queried.

Attribute filter panel (left)

The attribute filter panel

Set detailed filters based on the attributes carried in the logs. Click the close button at the top of the panel to collapse it and give the log list more room.

The panel offers the following.

  • Choosing filter attributes: select or clear the attributes to filter on. The number of available values is shown beside each attribute.
  • Filtering values within an attribute: pick particular values within a selected attribute. A search field in each attribute section finds values quickly.
  • Select/clear all: select or clear the filters for one attribute, or all of them, at once.

Note: whether the filter panel is shown is saved in the browser and persists into your next visit.

Main content area

The main content area carries the following, in order.

  1. The search and options bar: keyword search, level filter, source filter, sorting, view mode, and the number of rows to show
  2. The log message pattern trend chart: visualises how logs trended over time
  3. The log message list: the logs matching your conditions

Main features

Entering a search query

Entering a search query

Search finds logs containing a particular keyword or error message quickly.

  1. Type the keyword or error message into the Filter logs field at the top of the screen.
  2. Click Query, or press Enter, to run the search.
  3. Only log messages containing your keyword remain in the list.
  4. Click the clear (X) button in the field to reset the search term.

Tip: you can search on all sorts of keywords — an error code, an exception class name, a particular user ID.

The filter panel

The filter panel

The log viewer lets you combine several kinds of filter to find precisely the logs you want.

Level filter

Use the checkboxes in the Level filter group to choose which log levels to show. Several levels can be selected at once.

LevelDescription
ERRORLogs where an error occurred
WARNWarning logs that need attention
INFOOrdinary informational logs
DEBUGDetailed logs for debugging
TRACEThe most detailed trace logs
UNKNOWNLogs with no level set

Tip: ERROR, WARN and INFO are selected by default. When investigating a problem, select ERROR alone to concentrate on the error logs.

Source filter

Choose the log collection source in the Source filter group.

  • OTEL: logs sent through the OpenTelemetry SDK
  • Container: logs collected from the container runtime

Both sources are selected by default.

Using the attribute filter panel

The attribute filter panel on the left lets you filter on the various attributes carried in the logs.

  1. Expand the Choose filter attributes section at the top of the left panel.
  2. Select the attributes to filter on. The number of distinct values is shown beside each attribute name.
  3. The attributes you selected appear below as individual sections.
  4. Click the values you want in each attribute section to apply the filter. The search field finds a value in the list quickly.
  5. Where a filter is active, a badge beside the attribute name gives the number of values selected.

Tip: click Clear all at the top of the panel to reset every attribute filter at once.

Showing and hiding the filter panel

  • Click the close button at the top of the filter panel to collapse it.
  • Click the filter icon at the left edge of the screen to expand it again.
  • Where filters are active, the collapsed filter bar carries a visual marker.

Sorting and display options

The search and filter controls
  • Sort: newest first or oldest first. The default is newest first.
  • View: the message view is a table; the raw view shows the original log text.
  • Limit: the maximum number of logs to show at once — 25, 50, 100, 200 or 500.

The log message pattern trend chart

The log message pattern trend chart

A chart above the log list shows how log message patterns trended over the selected time range. Log volume is broken down by level with colour, so you can see at a glance where errors spiked.

Drag on the chart to zoom into that period.

Tip: find the period where errors rose sharply on the chart, then select it to get to the logs behind it quickly.

Reading the results

The log message list

The log message list

The log message list has the following columns.

ColumnDescription
Log timeExactly when the log was written. A colour marker for the level sits on the left
LevelThe first letter of the log's severity (E, W, I, D, T and so on)
SourceWhere the log was collected from (OTEL or Container)
ApplicationThe name and namespace of the application that produced the log
MessageThe log's content. Long messages are truncated; click the row to see the whole message in the detail dialog
ActionsThe copy button and the CogentAI analysis button

Statistics

The following statistics appear above the list.

ItemDescription
ShownHow many logs are currently on screen
FilteredHow many logs match the filter conditions in total
TotalHow many logs there are in the query period in total

These tell you what proportion of the whole the logs you are looking at represent.

Note: where the shown count equals the limit you set, more logs may in fact exist. Narrow the filters further, or raise the limit, to check.

Looking at a log in detail

Click a row in the log list to open its detail dialog.

ItemDescription
Log timeWhen the log occurred, with a level badge
MessageThe log's full content. Expand and collapse buttons open and close a long message
Attribute detailsEvery attribute carried in the log — timestamp, level, application, namespace and so on. Additional metadata is shown too, where present

Tip: JSON log messages are syntax-highlighted automatically.

Copying a log

The copy and CogentAI analysis buttons on a log row

Click the copy button at the right of a log row to copy that log's content to the clipboard, ready to paste into another tool for further analysis.

Analysing logs with CogentAI

The CogentAI Insight button in the log detail dialog

CogentAI is the AI-based analysis platform integrated into OPENMARU Observability. Where CogentAI is enabled, there are two ways to run AI analysis over a log.

Approach 1: straight from the log list

A CogentAI icon button sits in the action area at the right of each row of the log message table. Click it to pass that log message to CogentAI and request an analysis.

Approach 2: from the log detail dialog

  1. Click a row in the log list to open the detail dialog.
  2. Click the CogentAI Insight button below the message area.
  3. The CogentAI widget opens at the bottom right of the screen with the AI's analysis of that log message.

Tip: CogentAI analysis is useful for establishing the cause of an error log quickly, and for understanding what a complicated log message means.

Refreshing

The search and filter controls

Click Refresh to query the latest log data again, keeping your current filter conditions.

Adjusting the time range

Change the range in the time range picker at the top of the screen and the logs from that period are shown. This is useful for narrowing your analysis to the logs either side of a problem.

Note: the wider the time range, the more logs are returned; in that case use the limit option to control how many are shown.

Worked examples

Concentrating on error logs

Where errors spiked in a particular period, analyse them in this order.

  1. Find the period where logs spiked on the log message pattern trend chart.
  2. Drag on the chart to zoom into that period.
  3. Select ERROR alone in the level filter.
  4. Read the error messages and, where necessary, use keyword search to isolate a particular kind of error.
  5. Click a log row to see its detailed attributes, or click the CogentAI button to use AI analysis.

Following one application's logs

To follow only the logs from a particular application:

  1. Select the application in the application filters in the top header.
  2. Add any attributes you need (namespace and so on) in the attribute filter panel on the left.
  3. Combine the level and source filters to narrow the scope.
  4. Type a relevant keyword into the search field to find the logs you want.
  • Applications - the logs tab of an individual application, showing only that application's logs
  • Audit logs - Kubernetes and operating system audit events
  • Distributed tracing - the trace information connected to a log
  • Incidents - analysing the logs from the moment an incident occurred
  • Using charts - the shared chart controls