Log Highlighting for Faster Debugging with Testkube

Dec 19, 2023
2 mins
read
Ale Thomas
Developer Advocate
Testkube
Read more from
Ale Thomas

Table of Contents

Start your free trial.

Dec 19, 2023
2 mins
read
Ale Thomas
Developer Advocate
Testkube
Read more from
Ale Thomas
Ale Thomas
Developer Advocate
Testkube
Starting now, Testkube automatically highlights and flags predefined error and warning keywords in your test logs. Take a look at how to start debugging faster with Testkube's Log Highlights!

Table of Contents

Executive Summary

Looking at test logs and trying to find that key line that will help you debug an issue can be a simple task when dealing with logs that are 10 to 30 lines long. But what happens when you’re dealing with longer log files? As developers and testers alike, we’ve all been there.

As we grapple with the complexities of containerized applications orchestrated by Kubernetes, one critical aspect stands out for identifying issues, troubleshooting anomalies, and optimizing performance: having accurate and useful logs. 

In Testkube’s continued pursuit of streamlined testing processes and enhanced observability for your Kubernetes applications, we’ve worked on bringing an important improvement to your logs to help you troubleshoot failures and identify issues faster. 

With Testkube’s new Log Highlights, you can turn those hours of log reviewing into minutes:

Keyword Highlighting in Test Logs

Testkube log output with the Highlight for keywords filter and highlighted error lines

Starting now, Testkube automatically highlights and flags log lines containing predefined keywords such as error, fault, exception and warning, grouped into categories for errors, connection issues, and resource and access issues.

This helps you quickly skim through the log file without missing relevant information from the test output.

You can choose which keywords to highlight from a dropdown, and the Testkube UI does the rest, giving you multicolored output that includes the selected keywords.

Testkube Highlight for keywords dropdown with Error Keywords, Connection, Resource Issues and Access & Authorization categories

On top of that, you can spot highlighted words from an eagle-eye view on the right side of the log output section. Clicking a colored mark takes you directly to the highlighted line.

Getting Started with Improved Log Highlights

Getting started with our log highlights experience is easy:

  1. Sign in to Testkube
  2. Install Testkube in your cluster
  3. Add your tests or create new ones from your Testkube dashboard or Testkube CLI
  4. Start running your tests
  5. Head over to any test execution and click on it to open the Log View
  6. Select the log keywords to highlight from the dropdown
  7. Start debugging efficiently!

To try this and more of our new features, sign in to your Testkube account or sign up today! You can find the resources you need to get started in our documentation, or you can always contact us to schedule a demo. Join our Slack community for guidance and support. Happy testing!

Frequently Asked Questions

What is log highlighting in Testkube?

Log highlighting is a Testkube feature that automatically flags relevant keywords in test execution logs and color-codes them by category. It helps you find the line that explains a failure without reading the whole log.

Which keywords does Testkube highlight by default?

Testkube highlights predefined keywords such as error, fault, exception and warning. They are grouped into categories for errors, connection issues, and resource and access issues, and all categories are active by default.

Can I choose which keywords get highlighted?

Yes. Select Highlight for keywords in the log view to turn categories on or off. You can also manage categories and keywords, including custom ones with their own color, in your environment’s Keyword Handling settings.

How do I jump to a highlighted line in a long log?

Highlighted lines are marked on the scrollbar on the right side of the log output. Click a colored mark to go straight to that line, or use the arrows at the top of the log view to step through the highlights.

Where do I find the log view in Testkube?

Open any Test Workflow execution and select Open Details & Logs. The Log Output tab shows the execution log with highlighting applied, and you can copy only the highlighted lines from the copy menu.

{{banner-get-started}}

Ale Thomas
Developer Advocate
Testkube
Read more from
Ale Thomas

About Testkube

Testkube is the open testing platform for AI-driven engineering teams. It runs tests directly in your Kubernetes clusters, works with any CI/CD system, and supports every testing tool your team uses. By removing CI/CD bottlenecks, Testkube helps teams ship faster with confidence.
Get Started with a trial to see Testkube in action.