# Logstash - Report line Number on error

**URL:** https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866
**Category:** Logstash
**Created:** [November 17, 2015, 11:37pm UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866 "2015-11-17T23:37:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Raggyman](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Raggyman](https://discuss.elastic.co/u/Raggyman)
#### Post date: [November 17, 2015, 11:37pm UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866/1 "2015-11-17T23:37:39Z")

</div>

Becoming increasingly frustrated using Logstash for the simple need of a line number when there is an error occurs when reading the configuration. The move from 1.6 to 2.0 has been anything but painless.

Error meanings are almost on the level of Microsoft. Something happened, but you got to pull everything apart to find out what happened. Also experiencing the error below which is extremely useful.

```
retrying failed action with response code: 429 {:level=>:warn}
```

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [November 18, 2015, 12:28am UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866/2 "2015-11-18T00:28:51Z")

</div>

429 is a response code from ES, so you can check your logs there as well.

However what other problems are you having?

---

<div class="post-metadata">

### Author: ![Raggyman](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Raggyman](https://discuss.elastic.co/u/Raggyman)
#### Post date: [November 18, 2015, 12:36am UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866/3 "2015-11-18T00:36:06Z")

</div>

The ES logs show nothing.

The main issue is when there is a error in the configuration, to put in the line number on which the configuration failed, so you don't have to try and guess were the problem occurred.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [November 18, 2015, 12:44am UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866/4 "2015-11-18T00:44:32Z")

</div>

It should do that?

---

<div class="post-metadata">

### Author: ![Raggyman](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Raggyman](https://discuss.elastic.co/u/Raggyman)
#### Post date: [November 18, 2015, 12:51am UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866/5 "2015-11-18T00:51:43Z")

</div>

It should do but it doesn't.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [November 18, 2015, 1:08am UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866/6 "2015-11-18T01:08:01Z")

</div>

I am running 2.0.0;

```auto
Error: Expected one of \", ", any character at line 81, column 1 (byte 2412) after output {
    #stdout {
    # codec => "rubydebug"
    #}

    elasticsearch {
         index => "public_toilets"
         manage_template => "false"
    }
    stdout {
       codec => "dots
    }
}

You may be interested in the '--configtest' flag which you can
use to validate logstash's configuration before you choose
to restart a running system.

```

---

<div class="post-metadata">

### Author: ![Raggyman](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Raggyman](https://discuss.elastic.co/u/Raggyman)
#### Post date: [November 18, 2015, 1:45am UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866/7 "2015-11-18T01:45:22Z")

</div>

That is interesting, didn't get that on my version of 2.0.0 Will have to undo the changes I made and repost.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [November 18, 2015, 2:08am UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866/8 "2015-11-18T02:08:31Z")

</div>

Please do, it'd be interesting to see why you don't get that.

---

<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: [July 6, 2017, 5:22am UTC](https://discuss.elastic.co/t/logstash-report-line-number-on-error/34866/9 "2017-07-06T05:22:28Z")

</div>


