Menu
Grafana Cloud
Inspect logs
Logs are messages you can add to your test script to help you debug tests. You can use the following methods:
console.log()
console.info()
console.warn()
console.error()
console.debug()
- Only shown when running k6 with the
-v/--verbose
flag.
- Only shown when running k6 with the
To view all the logs for a test run, click the Logs tab. Depending on the method you’re using, a green, yellow, or red marking is displayed next to each log.
You can select a log message to expand it and see more details such as:
- instance_id
- level
- lz (load zone)
- source
- test_run_id
You can also filter the list by using:
- Filter: Filter by text in the log message.
- Level: Choose from the different level options.
- Info:
console.log
andconsole.info
. - Debug:
console.debug
. - Warning:
console.warning
. - Error:
console.error
.
- Info:
- Load zone: Choose from the different load zones used in the test run.
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

Shift left performance testing with Grafana Cloud k6
This webinar covers how to automate testing and test earlier in the development process to bring high-quality products to market faster using k6 Cloud.

Kubernetes monitoring, out-of-the-box with Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.

Unify your data with Grafana plugins: Datadog, Splunk, MongoDB, and more
In this webinar, learn how to leverage Grafana's plugin ecosystem for access to 80+ data sources, including plugins for Datadog, Splunk, MongoDB, and more.