---
type: api
title: Get events statistics
description: Get statistics related to event processing.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/logstash/operation/operation-nodestatsevents
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/logstash/operation/operation-nodestatsevents
products:
  - Logstash
---

# Get events statistics

- Server: `/`

## Paths

- `GET` `/_node/stats/events`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/logstash/authentication#basicauth)

## Description

Get statistics related to event processing.

## Query String Parameters

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

## Response

A JSON object containing events statistics.

`application/json`

- `events` (object)
  - `in` (integer)
  - `filtered` (integer)
  - `out` (integer)
  - `duration_in_millis` (integer)
  - `queue_push_duration_in_millis` (integer)
## Code Examples

#### Console

```console
GET /_node/stats/events
```

#### curl

```curl
curl -X GET "/_node/stats/events"
```

## Response Examples

#### 200

```json
{
  "events": {
    "duration_in_millis": 1109,
    "in": 56,
    "filtered": 56,
    "out": 56,
    "queue_push_duration_in_millis": 2
  }
}
```

