# Logstash could not index event, how to view what server send the event

**URL:** <https://discuss.elastic.co/t/logstash-could-not-index-event-how-to-view-what-server-send-the-event/328619>\
**Category:** Logstash\
**Created:** [March 27, 2023, 1:17pm UTC](https://discuss.elastic.co/t/logstash-could-not-index-event-how-to-view-what-server-send-the-event/328619 "2023-03-27T13:17:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginokok1996](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ginokok1996/32/118985_2.png) [@ginokok1996](https://discuss.elastic.co/u/ginokok1996)\
**Post date:** [March 27, 2023, 1:17pm UTC](https://discuss.elastic.co/t/logstash-could-not-index-event-how-to-view-what-server-send-the-event/328619/1 "2023-03-27T13:17:22Z")

</div>

Hi,

We are currently receiving quite some errors relating to the same issue:

```auto
[2023-03-27T15:13:43,994][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"filebeat-8.4.2-2023.03.27", :_type=>"doc", :routing=>nil}, #<LogStash::Event:0xae9e3d9>], :response=>{"index"=>{"_index"=>"filebeat-8.4.2-2023.03.27", "_type"=>"doc", "_id"=>"1Tg0I4cBwp24Jwa8A00Q", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [params.value] of type [keyword] in document with id '1Tg0I4cBwp24Jwa8A00Q'", "caused_by"=>{"type"=>"illegal_state_exception", "reason"=>"Can't get text on a START_OBJECT at 1:2731"}}}}}

```

Now i understand that params.value is expecting a type of keyword but is receiving an object.  
We have a lot of servers with filebeat connected to logstash.

Is there a way i can view what server is sending these events that containt this error?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [March 27, 2023, 1:26pm UTC](https://discuss.elastic.co/t/logstash-could-not-index-event-how-to-view-what-server-send-the-event/328619/2 "2023-03-27T13:26:27Z")

</div>

> [@ginokok1996](#):
>
> Is there a way i can view what server is sending these events that containt this error?

Do you have anything in the message that would indicate the server? The raw message is also logged in this case and you could check on it.

Since it is an error `400` you could also enable the [DLQ](https://www.elastic.co/guide/en/logstash/current/dead-letter-queues.html) to store those messages and consume it later to investigate further.

---

<div class="post-metadata">

**Author:** ![ginokok1996](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ginokok1996/32/118985_2.png) [@ginokok1996](https://discuss.elastic.co/u/ginokok1996)\
**Post date:** [March 27, 2023, 1:28pm UTC](https://discuss.elastic.co/t/logstash-could-not-index-event-how-to-view-what-server-send-the-event/328619/3 "2023-03-27T13:28:27Z")

</div>

Unfortunately no indication of the server in the error messages.

DLQ sounds like it could help me fix my problem.  
I will look into that thanks for the information.

---

<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:** [April 24, 2023, 1:29pm UTC](https://discuss.elastic.co/t/logstash-could-not-index-event-how-to-view-what-server-send-the-event/328619/4 "2023-04-24T13:29:23Z")

</div>

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