Skip to content

Logstash

Common parts of every card (states, backoff, Unit and ExecReload, Test config, manual commands) are described in Monitor window.

Detected by systemd units logstash or binaries logstash
Read every 60 s while the Monitor window shows the tab
Active probe yes, off by default
Test config on demand

Logstash: the JVM process (closed list of argv options: settings and data paths, heap), logstash.yml and pipelines.yml filtered on the host to a closed list of keys (API address, queues, workers, pipeline ids and config paths; never config.string, keystore or monitoring credentials), the package version and, as an active probe, GET /_node/stats/pipelines and /_node/stats/jvm of the local API reduced on the host to event counters, plugin names, queues, the dead letter queue, reload counters and the heap. Pipeline files are not parsed (plugin names come from the API, review B.024). “Test config” (on demand): logstash --path.settings <dir> --config.test_and_exit -f <path.config> with temporary --path.data and --path.logs; the heap lines of jvm.options and MemAvailable are read for its note.

Runs: GET http://127.0.0.1:&lt;api.http.port&gt;/_node/stats/pipelines and /_node/stats/jvm (or [::1]; port from argv or logstash.yml, else 9600) every minute while the Monitor is open, only when the API is enabled, on loopback, without TLS or basic auth, and the port’s only loopback listener is the Logstash JVM (org.logstash.Logstash): trusted curl under env -i, timeout 5 s, no proxy or redirects. On the host the JSON is reduced to event counters, plugin names, queue and dead letter queue sizes, reload counters and the heap

Traces on the host: two HTTP requests per run to the monitoring API; Logstash does not log API requests at the default log level; no files

What it does, as the card says: starts a JVM with the heap from jvm.options (often 1 GB) for tens of seconds of CPU, loads every plugin the pipeline names and compiles it (Ruby code in the configuration may run), then exits without starting inputs or outputs; data and logs go to temporary directories removed after the test.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close