Skip to main content
New to Testkube? Unleash the power of cloud native testing in Kubernetes with Testkube. Get Started >

Log Highlighting

PRO FEATURE

Overview

In Testkube Pro, we highlight relevant keywords in logs for faster debugging. To use this feature, open execution details.

On this screen, all the lines that may be relevant will be highlighted in the interface.

log-highlighting.png

You may navigate through the highlighted lines with the arrows on top of the interface or use the scrollbar where all relevant lines are marked.

Filtering

To decide on the active highlight categories, you may click the "Highlight for keywords" button. By default, all the categories are active.

log-highlighting-filtering.png

Configuring Keyword Categories

There are 4 default categories, represented with a few keywords each:

CategoryKeywords
Error KeywordsError, Exception, Fail, Critical, Fatal
ConnectionConnection, Disconnect, Lost, Timeout, Refused, Handshake, Retrying
Resource IssuesOutOfMemory, MemoryLeak, ResourceExhausted, LimitExceeded, Quota
Access & AuthorizationDenied, Unauthorized, Forbidden, Invalid, Invalid Token, Expired

To configure keyword categories for highlighting:

  1. Navigate to the Environment settings -> Keyword handling.
  2. Add a new category by providing a color, a group name, and an array of keywords.
  3. Save the changes.

Example Configuration

keyword-highlights-configuration.png

In the example above, there are default categories along with a new one:

  • Custom Category (New):
    • Color: Green
    • Group Name: Custom Category
    • Keywords: [CustomKeyword1, CustomKeyword2, CustomKeyword3]

These keywords will be highlighted in logs when the custom category is active.