# How to debug logstash errors

**URL:** https://discuss.elastic.co/t/how-to-debug-logstash-errors/74130
**Category:** Logstash
**Created:** [February 6, 2017, 9:37pm UTC](https://discuss.elastic.co/t/how-to-debug-logstash-errors/74130 "2017-02-06T21:37:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dbenson](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dbenson](https://discuss.elastic.co/u/dbenson)
#### Post date: [February 6, 2017, 9:37pm UTC](https://discuss.elastic.co/t/how-to-debug-logstash-errors/74130/1 "2017-02-06T21:37:28Z")

</div>

I've started writing json files into ELK 5.1.1 but don't know where to proceed with log messages in logstash-plain.log like:

[2017-02-06T21:07:17,039][WARN][logstash.outputs.elasticsearch] Failed action. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"logstash-alert-orders-2017.02.06", :\_type=\>"alertorders", :\_routing=\>nil}, 017-02-06T16:24:17.319Z de-chana702 %{message}], :response=\>{"index"=\>{"\_index"=\>"logstash-alert-orders-2017.02.06", "\_type"=\>"alertorders", "\_id"=\>"AVoVQH54d1XpO5NeqHDS", "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse", "caused\_by"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"name cannot be empty string"}}}}}

Is there a way of getting the input line which caused the error?

Thanks in advance,

David

---

<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 6, 2017, 9:37pm UTC](https://discuss.elastic.co/t/how-to-debug-logstash-errors/74130/2 "2017-03-06T21:37:36Z")

</div>

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