Get statistics for a pipeline

GET /_node/stats/pipelines/{pipeline_name}

Get performance metrics and plugin details for a pipeline.

Path parameters

  • pipeline_name string Required

    The name of the pipeline to retrieve information for.

Query parameters

  • pretty boolean

    If you append ?pretty=true to the request, the JSON returned will be pretty formatted. Use it for debugging only!

Responses

  • 200 application/json

    A JSON object containing a single pipeline statistics.

    Hide response attribute Show response attribute object
    • pipelines object

      A map where each key is a user-defined pipeline name, and the value contains the metrics for that pipeline.

      Hide pipelines attribute Show pipelines attribute object
      • * object

        Metrics of each plugin in the pipeline, flow statistics, event statistics and queue statistics.

        Hide * attributes Show * attributes object
        • events object
          Hide events attributes Show events attributes object
          • in integer(int64)
          • filtered integer(int64)
          • out integer(int64)
          • duration_in_millis integer(int64)
          • queue_push_duration_in_millis integer(int64)
        • flow object

          One of:
        • plugins object
          Hide plugins attributes Show plugins attributes object
        • reloads object
          Hide reloads attributes Show reloads attributes object
          • last_error string | null
          • successes integer(int64)
          • last_success_timestamp string | null
          • last_failure_timestamp string | null
          • failures integer(int64)
        • queue object

          One of:
        • pipeline object
          Hide pipeline attributes Show pipeline attributes object
          • workers integer
          • batch_size integer
          • batch_delay integer
        • hash string

          A unique hash identifier.

        • ephemeral_id string(uuid)

          A temporary unique identifier for the instance.

GET /_node/stats/pipelines/{pipeline_name}
curl \ --request GET 'http://api.example.com/_node/stats/pipelines/{pipeline_name}' \ --user "username:password"
Response examples (200)
A pipeline with a persisted queue.
{ "pipelines": { "heartbeat-ruby-stdout": { "flow": { "input_throughput": { "current": 0, "lifetime": 0.0167, "last_1_minute": 0.01614, "last_5_minutes": 0.01627, "last_15_minutes": 0.01643 }, "filter_throughput": { "current": 0, "lifetime": 0.0167, "last_1_minute": 0.01614, "last_5_minutes": 0.01627, "last_15_minutes": 0.01643 }, "output_throughput": { "current": 0, "lifetime": 0.0167, "last_1_minute": 0.01614, "last_5_minutes": 0.01627, "last_15_minutes": 0.01643 }, "queue_backpressure": { "current": 0, "lifetime": 5.901e-05, "last_1_minute": 1.614e-05, "last_5_minutes": 2.278e-05, "last_15_minutes": 4.272e-05 }, "worker_concurrency": { "current": 0, "lifetime": 0.0001266, "last_1_minute": 4.843e-05, "last_5_minutes": 7.486e-05, "last_15_minutes": 0.0001183 }, "worker_utilization": { "current": 0, "lifetime": 0.001055, "last_1_minute": 0.0004036, "last_5_minutes": 0.0006239, "last_15_minutes": 0.0009858 }, "queue_persisted_growth_bytes": { "current": 0, "lifetime": 4.214, "last_1_minute": 4.068, "last_5_minutes": 4.101, "last_15_minutes": 4.14 }, "queue_persisted_growth_events": { "current": 0, "lifetime": 0, "last_1_minute": 0, "last_5_minutes": 0, "last_15_minutes": 0 } }, "hash": "c11e0502ebf98956dffa371775fd1cb719f85f819ee166b770b3e982da1c999d", "batch": { "byte_size": { "average": { "lifetime": 14820 } }, "event_count": { "average": { "lifetime": 115 } } }, "queue": { "data": { "path": "/path/to/logstash/data/queue/heartbeat-ruby-stdout", "storage_type": "apfs", "free_space_in_bytes": 60833390592 }, "type": "persisted", "events": 0, "capacity": { "max_unread_events": 0, "queue_size_in_bytes": 11341, "page_capacity_in_bytes": 67108864, "max_queue_size_in_bytes": 1073741824 }, "events_count": 0, "queue_size_in_bytes": 11341, "max_queue_size_in_bytes": 1073741824 }, "events": { "in": 45, "out": 45, "filtered": 45, "duration_in_millis": 341, "queue_push_duration_in_millis": 159 }, "plugins": { "codecs": [ { "id": "plain_b0090202-daac-428e-8355-18c35a0826cb", "name": "plain", "decode": { "out": 0, "writes_in": 0, "duration_in_millis": 0 }, "encode": { "writes_in": 0, "duration_in_millis": 0 } }, { "id": "6bff4bc6-3a8c-494c-aa65-d16e1eb09578", "name": "rubydebug" } ], "inputs": [ { "id": "c9ca46e359d73146590ca8af40092342afa922f3cbf07adc4b5009e346cb19f7", "flow": { "throughput": { "current": 0, "lifetime": 0.0167, "last_1_minute": 0.01614, "last_5_minutes": 0.01627, "last_15_minutes": 0.01643 } }, "name": "heartbeat", "events": { "out": 45, "queue_push_duration_in_millis": 159 } } ], "filters": [ { "id": "585fa932a4fd506055ead07ee5ebcb3033c27c82ba90cbee73d6ac7e9357333a", "flow": { "worker_utilization": { "current": 0, "lifetime": 0.000266, "last_1_minute": 0.0001345, "last_5_minutes": 0.0001627, "last_15_minutes": 0.0002191 }, "worker_millis_per_event": { "lifetime": 1.911, "last_1_minute": 1, "last_5_minutes": 1.2, "last_15_minutes": 1.6 } }, "name": "ruby", "events": { "in": 45, "out": 45, "duration_in_millis": 86 } } ], "outputs": [ { "id": "c4f801c8f170b4cb0679f704413773acd5f291929f42302d0a56361400c3741b", "flow": { "worker_utilization": { "current": 0, "lifetime": 0.000668, "last_1_minute": 0.000269, "last_5_minutes": 0.000434, "last_15_minutes": 0.0006663 }, "worker_millis_per_event": { "lifetime": 4.8, "last_1_minute": 2, "last_5_minutes": 3.2, "last_15_minutes": 4.867 } }, "name": "stdout", "events": { "in": 45, "out": 45, "duration_in_millis": 216 } } ] }, "reloads": { "failures": 0, "successes": 0, "last_error": null, "last_failure_timestamp": null, "last_success_timestamp": null }, "pipeline": { "workers": 12, "batch_size": 125, "batch_delay": 50 }, "ephemeral_id": "6a218b06-9655-4ddc-84e9-d5bfa51e5dc7" } } }
A pipeline with a memory queue.
{ "pipelines": { "heartbeat-ruby-stdout": { "flow": { "input_throughput": { "current": 0.09877, "lifetime": 0.03094, "last_1_minute": 0.01661 }, "filter_throughput": { "current": 0.09877, "lifetime": 0.03094, "last_1_minute": 0.01661 }, "output_throughput": { "current": 0.09877, "lifetime": 0.03094, "last_1_minute": 0.01661 }, "queue_backpressure": { "current": 0, "lifetime": 0, "last_1_minute": 0 }, "worker_concurrency": { "current": 0.0002963, "lifetime": 0.0002166, "last_1_minute": 0.0001661 }, "worker_utilization": { "current": 0.002469, "lifetime": 0.001805, "last_1_minute": 0.001384 } }, "hash": "c11e0502ebf98956dffa371775fd1cb719f85f819ee166b770b3e982da1c999d", "queue": { "type": "memory", "events_count": 0, "queue_size_in_bytes": 0, "max_queue_size_in_bytes": 0 }, "events": { "in": 2, "out": 2, "filtered": 2, "duration_in_millis": 14, "queue_push_duration_in_millis": 0 }, "plugins": { "codecs": [ { "id": "8b2798ec-d828-445a-a5c3-b0ebe2ec142a", "name": "rubydebug" }, { "id": "plain_dc12bcf8-1c2e-4f28-b55d-a82ab127d00a", "name": "plain", "decode": { "out": 0, "writes_in": 0, "duration_in_millis": 0 }, "encode": { "writes_in": 0, "duration_in_millis": 0 } } ], "inputs": [ { "id": "c9ca46e359d73146590ca8af40092342afa922f3cbf07adc4b5009e346cb19f7", "flow": { "throughput": { "current": 0.09876, "lifetime": 0.03094, "last_1_minute": 0.01661 } }, "name": "heartbeat", "events": { "out": 2, "queue_push_duration_in_millis": 0 } } ], "filters": [ { "id": "585fa932a4fd506055ead07ee5ebcb3033c27c82ba90cbee73d6ac7e9357333a", "flow": { "worker_utilization": { "current": 0.000823, "lifetime": 0.0005157, "last_1_minute": 0.0005537 }, "worker_millis_per_event": { "current": 1, "lifetime": 2, "last_1_minute": 4 } }, "name": "ruby", "events": { "in": 2, "out": 2, "duration_in_millis": 4 } } ], "outputs": [ { "id": "c4f801c8f170b4cb0679f704413773acd5f291929f42302d0a56361400c3741b", "flow": { "worker_utilization": { "current": 0.002469, "lifetime": 0.0009025, "last_1_minute": 0.0005537 }, "worker_millis_per_event": { "current": 3, "lifetime": 3.5, "last_1_minute": 4 } }, "name": "stdout", "events": { "in": 2, "out": 2, "duration_in_millis": 7 } } ] }, "reloads": { "failures": 0, "successes": 0, "last_error": null, "last_failure_timestamp": null, "last_success_timestamp": null }, "pipeline": { "workers": 12, "batch_size": 125, "batch_delay": 50 }, "ephemeral_id": "c91bff2b-c92b-45ac-8c74-04783f6cc1dd" } } }