Steadybit logoReliability Hub
GitHubGitHub iconStart Free Trial
Steadybit logoReliability Hub

DaemonSet Error Log Count

CheckCheck
Counts the error log lines of the daemonset's pods and optionally fails when a threshold is exceeded.
Targets:
Kubernetes Daemonsets
Install now

DaemonSet Error Log Count

Counts the error log lines of the daemonset's pods and optionally fails when a threshold is exceeded.
CheckCheck
Install now

DaemonSet Error Log Count

CheckCheck
Counts the error log lines of the daemonset's pods and optionally fails when a threshold is exceeded.
Install now

DaemonSet Error Log Count

Counts the error log lines of the daemonset's pods and optionally fails when a threshold is exceeded.
CheckCheck
Install now
Go back to list
Check settings: fail when any pod's error count exceeds the max, with the default error pattern and the optional filters.Check settings: fail when any pod's error count exceeds the max, with the default error pattern and the optional filters.

Introduction

The DaemonSet Error Log Count check counts the error log lines of a DaemonSet's pods while an experiment step runs, shows them per pod in a chart, and can fail the step when there are too many. It answers the question SREs ask during an attack or right after a deployment: are my error logs going up?

Only the counts are reported to Steadybit. The log lines themselves never leave the cluster.

Use Cases

  • Watch whether an attack makes a service log errors, even when it keeps responding
  • Fail an experiment when a daemonset logs more errors than an acceptable maximum
  • Verify that a rollout doesn't introduce new errors: pods created during the step are counted too
  • Compare error logs before, during and after an attack

Prerequisites

  • The extension needs get permission on pods/log. The Helm chart grants it; without it, the check is not offered.
  • The application logs to stdout/stderr, as kubectl logs shows them. Logs written to files inside the container aren't counted.

Parameters

ParameterDescriptionDefault
DurationHow long the error logs are counted. Lines logged before or after the step are ignored.60s
Fail whenNever (visualize only), total error count > max (all pods together), or error count of any pod > max.Never
Max error countThe threshold for Fail when. 0 means any error line fails the step.0
Error patternRegular expression (RE2) marking a line as an error. The default matches error, fatal, panic, critical and ...Exception (case-insensitive) in plain-text, logfmt and JSON logs.see description
Ignore pattern(optional) Regular expression for lines never counted as errors, e.g. a noisy health check.
Container name(optional) Count only this container, e.g. to leave out a sidecar such as istio-proxy.all containers
Fail earlyFail as soon as the threshold is exceeded instead of at the end of the step.off

Details

The extension follows the logs of each running container of the daemonset's pods with one live stream (like kubectl logs -f) and counts the matching lines. Every 2 seconds the error and line counts per pod are reported as metrics and shown in the Kubernetes Error Log Count chart, with a selector to switch between pods. Points turn red once the max error count is exceeded. Containers that restart during the step are counted across restarts, and native sidecars are included.

To protect the Kubernetes API server and the extension, three limits apply. Cluster operators can change them in the Helm chart:

LimitHelm valueDefault
Containers per steplogErrorCount.maxContainersPerStep20
Containers across all running stepslogErrorCount.maxConcurrentStreams40
Log volume across all running stepslogErrorCount.maxLogMiBPerSecond10 MiB/s

A step targeting more containers than allowed refuses to start. When the log volume budget is exceeded, the step reading the most stops counting and reports a warning. If logs couldn't be fully counted and a threshold is set, the step ends as errored instead of passing, since the result can't be verified.

More Kubernetes Daemonset Actions

See all
DaemonSet Pod Count
Verifies Kubernetes DaemonSet pod counts
CheckCheck
Kubernetes Daemonsets
Start Using Steadybit Today

Get started with Steadybit, and you’ll get access to all of our features to discover the full power of Steadybit. Available for SaaS and on-prem!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Statistics
-Stars
Tags
Kubernetes
Log
Observability
Monitoring
AWS
Azure
GCP
AWS EKS
Azure AKS
GCP GKE
Homepage
hub.steadybit.com/extension/com.steadybit.extension_kubernetes
License
MIT
MaintainerSteadybit
Install now
Steadybit logoReliability Hub
Start Free Trial
© 2026 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon