Node Info API

edit

The node info API retrieves information about the node.

curl -XGET 'localhost:9600/_node/<types>'

Where <types> is optional and specifies the types of node info you want to return.

You can limit the info that’s returned by combining any of the following types in a comma-separated list:

pipeline

Gets pipeline-specific information and settings.

os

Gets node-level info about the OS.

jvm

Gets node-level JVM info, including info about threads.

See Common Options for a list of options that can be applied to all Logstash monitoring APIs.

Pipeline Info

edit

The following request returns a JSON document that shows pipeline info, such as the number of workers, batch size, and batch delay:

curl -XGET 'localhost:9600/_node/pipeline?pretty'

If you want to view additional information about the pipeline, such as stats for each configured input, filter, or output stage, see the Pipeline Stats section under the Node Stats API.

Example response:

{
  "pipeline": {
    "workers": 8,
    "batch_size": 125,
    "batch_delay": 5,
    "config_reload_automatic": true,
    "config_reload_interval": 3
    "id" : "main"
  }

OS Info

edit

The following request returns a JSON document that shows the OS name, architecture, version, and available processors:

curl -XGET 'localhost:9600/_node/os?pretty'

Example response:

{
  "os": {
    "name": "Mac OS X",
    "arch": "x86_64",
    "version": "10.12.4",
    "available_processors": 8
  }

JVM Info

edit

The following request returns a JSON document that shows node-level JVM stats, such as the JVM process id, version, VM info, memory usage, and info about garbage collectors:

curl -XGET 'localhost:9600/_node/jvm?pretty'

Example response:

{
  "jvm": {
    "pid": 59616,
    "version": "1.8.0_65",
    "vm_name": "Java HotSpot(TM) 64-Bit Server VM",
    "vm_version": "1.8.0_65",
    "vm_vendor": "Oracle Corporation",
    "start_time_in_millis": 1484251185878,
    "mem": {
      "heap_init_in_bytes": 268435456,
      "heap_max_in_bytes": 1037959168,
      "non_heap_init_in_bytes": 2555904,
      "non_heap_max_in_bytes": 0
    },
    "gc_collectors": [
      "ParNew",
      "ConcurrentMarkSweep"
    ]
  }
}