Get node stats
Get runtime stats for Logstash, where <types>
(optional) specifies the types of stats you want to return.
You can limit the info that is returned by combining any of these types in a comma-separated list:
jvm
gets JVM stats, including stats about threads, memory usage, garbage collectors, and uptime.process
gets process stats, including stats about file descriptors, memory consumption, and CPU usage.events
gets event-related statistics for the Logstash instance (regardless of how many pipelines were created and destroyed).flow
gets flow-related statistics for the Logstash instance (regardless of how many pipelines were created and destroyed).pipelines
gets runtime stats about each Logstash pipeline.reloads
gets runtime stats about config reload successes and failures.os
gets runtime stats about cgroups when Logstash is running in a container.geoip_download_manager
gets stats for databases used with the Geoip filter plugin.
Query parameters
-
pretty boolean
If you append
?pretty=true
to the request, the JSON returned will be pretty formatted (use it for debugging only!).
GET
/_node/stats
curl \
-X GET http://api.example.com/_node/stats
Response examples (200)
{
"jvm": {
"gc": {
"collectors": {
"old": {
"collection_count": 12,
"collection_time_in_millis": 607
},
"young": {
"collection_count": 1033,
"collection_time_in_millis": 4904
}
}
},
"mem": {
"pools": {
"old": {
"max_in_bytes": 715849728,
"used_in_bytes": 148656848,
"peak_max_in_bytes": 715849728,
"committed_in_bytes": 229322752,
"peak_used_in_bytes": 148656848
},
"young": {
"max_in_bytes": 286326784,
"used_in_bytes": 2740472,
"peak_max_in_bytes": 286326784,
"committed_in_bytes": 71630848,
"peak_used_in_bytes": 71630848
},
"survivor": {
"max_in_bytes": 35782656,
"used_in_bytes": 288776,
"peak_max_in_bytes": 35782656,
"committed_in_bytes": 8912896,
"peak_used_in_bytes": 8912896
}
},
"heap_max_in_bytes": 1037959168,
"heap_used_percent": 14,
"heap_used_in_bytes": 151686096,
"non_heap_used_in_bytes": 122486176,
"heap_committed_in_bytes": 309866496,
"non_heap_committed_in_bytes": 133222400
},
"threads": {
"count": 49,
"peak_count": 50
},
"uptime_in_millis": 1809643
}
}