# Logstash stats API is showing wrong events values

**URL:** <https://discuss.elastic.co/t/logstash-stats-api-is-showing-wrong-events-values/352419>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [February 2, 2024, 3:17pm UTC](https://discuss.elastic.co/t/logstash-stats-api-is-showing-wrong-events-values/352419 "2024-02-02T15:17:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freddy\_Laffita\_Almag](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/freddy_laffita_almag/32/131375_2.png) [@Freddy\_Laffita\_Almag](https://discuss.elastic.co/u/Freddy_Laffita_Almag)\
**Post date:** [February 2, 2024, 3:17pm UTC](https://discuss.elastic.co/t/logstash-stats-api-is-showing-wrong-events-values/352419/1 "2024-02-02T15:17:53Z")

</div>

Hello everyone:

I'm using logstash from a docker image, I'm consulting the stats API to show the logs processed by a pipeline to the user, but when I send 200 logs every 0.01 seconds the event information is showing wrong values. If I restart the pipeline and send a few logs every 1 or two seconds, the event information shows the right values

Node information:

```auto
"host": "19b4437c6bd2",
	"version": "7.17.4",
	"http_address": "0.0.0.0:9600",
	"id": "90a19e53-5c93-4268-94e6-641e763e6017",
	"name": "19b4437c6bd2",
	"ephemeral_id": "b409fac0-0a62-4a8c-a5e0-225128fbfabd",
	"status": "green",
	"snapshot": false,
	"pipeline": {
		"workers": 8,
		"batch_size": 125,
		"batch_delay": 50
	}

```

Events information of the pipeline:

```auto
"syslog": {
			"events": {
				"duration_in_millis": 41578,
				"out": 13935,
				"filtered": 144,
				"queue_push_duration_in_millis": 0,
				"in": 144
			}

```

During my tests, I realized that `out` is showing the right values of the logs indexed in elastic but not `in` and `filtered` values. Does anyone have an idea if there is a bug, or can we configure something in logstash to avoid that behavior?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 1, 2024, 3:18pm UTC](https://discuss.elastic.co/t/logstash-stats-api-is-showing-wrong-events-values/352419/2 "2024-03-01T15:18:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
