Skip to content
Novus Examples
log2.5 KB

Kubernetes Component Log — klog (log)

A Kubernetes-component log in the klog/glog format — a severity letter, timestamp, thread id, and source location prefix followed by the message. A fixture for testing klog parsers and severity extraction.

Preview — first 29 lineslog
W0115 09:30:02.436000       9 handler.go:287] request method=GET path=/api/products/999 status=404
I0115 09:30:04.667000      10 server.go:399] Starting API server, version=1.4.2
I0115 09:30:05.283000      13 reconcile.go:213] reconcile loop completed objects=42 duration=88ms
I0115 09:30:07.302000       7 server.go:144] Starting API server, version=1.4.2
W0115 09:30:08.167000      28 handler.go:276] request method=GET path=/api/products/999 status=404
W0115 09:30:08.711000       9 handler.go:390] request method=GET path=/api/products/999 status=404
I0115 09:30:11.114000      19 handler.go:108] request method=POST path=/api/orders status=201
I0115 09:30:12.150000      27 handler.go:341] request method=GET path=/healthz status=200
I0115 09:30:14.006000       2 handler.go:268] request method=POST path=/api/orders status=201
I0115 09:30:15.900000      27 cache.go:329] cache warmed keys=128
W0115 09:30:18.131000      12 pool.go:178] connection pool nearing capacity in-use=9 max=10
I0115 09:30:19.672000       7 shutdown.go:206] received SIGTERM, draining connections
W0115 09:30:21.152000      14 pool.go:330] connection pool nearing capacity in-use=9 max=10
I0115 09:30:23.625000      14 handler.go:381] request method=POST path=/api/orders status=201
I0115 09:30:24.746000      20 shutdown.go:53] received SIGTERM, draining connections
I0115 09:30:25.083000      24 reconcile.go:364] reconcile loop completed objects=42 duration=88ms
W0115 09:30:26.457000       6 pool.go:303] connection pool nearing capacity in-use=9 max=10
E0115 09:30:28.867000       5 upstream.go:298] upstream call failed: context deadline exceeded
I0115 09:30:29.899000       7 cache.go:226] cache warmed keys=128
I0115 09:30:32.663000      19 reconcile.go:183] reconcile loop completed objects=42 duration=88ms
I0115 09:30:34.446000      16 server.go:53] Starting API server, version=1.4.2
E0115 09:30:37.020000       2 upstream.go:399] upstream call failed: context deadline exceeded
I0115 09:30:38.077000      12 config.go:351] loaded configuration from /etc/app/config.yaml
I0115 09:30:38.594000      29 handler.go:311] request method=GET path=/healthz status=200
W0115 09:30:40.116000       4 handler.go:210] request method=GET path=/api/products/999 status=404
I0115 09:30:42.352000      26 cache.go:347] cache warmed keys=128
W0115 09:30:43.351000      19 handler.go:299] request method=GET path=/api/products/999 status=404
I0115 09:30:46.177000       2 cache.go:315] cache warmed keys=128

Specifications

Lines
28
Format
klog (glog)
Schema
Lmmdd hh:mm:ss.uuuuuu threadid file:line] msg
Seed
505

What is a .log file?

LOG files are plain-text records of events emitted by software, typically one entry per line with a timestamp, severity, and message. There is no single standard, so formats range from unstructured text to structured JSON lines. They are central to debugging, monitoring, and auditing.

How to use this file

Use an example LOG file to test log parsers, timestamp and severity extraction, line-oriented streaming, and ingestion into monitoring or analysis pipelines.

Generated by generation/data_logs.py. Free for any use, no attribution required — license.