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 |
What the card reads and shows
Section titled “What the card reads and shows”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.
Active probe
Section titled “Active probe”Runs: GET http://127.0.0.1:<api.http.port>/_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
Test config
Section titled “Test config”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.