# JSON parse failure. Falling back to plain-text

**URL:** <https://discuss.elastic.co/t/json-parse-failure-falling-back-to-plain-text/154445>\
**Category:** Logstash\
**Created:** [October 29, 2018, 1:21pm UTC](https://discuss.elastic.co/t/json-parse-failure-falling-back-to-plain-text/154445 "2018-10-29T13:21:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilesh\_Shashtri](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@Nilesh\_Shashtri](https://discuss.elastic.co/u/Nilesh_Shashtri)\
**Post date:** [October 29, 2018, 1:21pm UTC](https://discuss.elastic.co/t/json-parse-failure-falling-back-to-plain-text/154445/1 "2018-10-29T13:21:58Z")

</div>

I have show error in my Logstash log:-  
rating root-level values  
at [Source: [B@25cc18c4; line: 1, column: 4]\>, :data=\>"29/Oct/2018:07:22:33 +0000 103.216.238.37 IN 0.169 172.69.135.147 - GET /account/subscription HTTP/1.1 200 2051 [http://localhost:4200/dashboard](http://localhost:4200/dashboard) Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 103.216.238.37 2 715 32556 0.169\n", :level=\>:error}  
{:timestamp=\>"2018-10-29T13:10:11.099000+0000", :message=\>"JSON parse failure. Falling back to plain-text", :error=\>#\<LogStash::Json::ParserError: Unexpected character ('/' (code 47)): Expected space sepa

My config is:-  
input {

```
s3 {

     bucket => "xxxxxxxxxx"

     credentials => ["access_key_id", "secret_access_ke"]

     region_endpoint => "xxxxxxxxxxx"
     #region => "xxxxxxxxxxx"
     #access_key_id => "xxxxxxxxxxxxxxxxxxxxxx"
     #secret_access_key => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
     codec => json {
       charset => "ISO-8859-1"

    }

 }

```

}

filter {

```
 grok {

    match => {"message" => "Pattern"}

```

}

}

output {

```
 #stdout {

    #codec =>json

```

#}

elasticsearch {

```
hosts => "localhost:9200"

#port => "9200"

codec => json {

charset => "ISO-8859-1"

 }

```

}

}

---

<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:** [November 26, 2018, 1:21pm UTC](https://discuss.elastic.co/t/json-parse-failure-falling-back-to-plain-text/154445/2 "2018-11-26T13:21:59Z")

</div>

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