# Logstash Error registering plugin

**URL:** <https://discuss.elastic.co/t/logstash-error-registering-plugin/178307>\
**Category:** Logstash\
**Created:** [April 24, 2019, 5:55pm UTC](https://discuss.elastic.co/t/logstash-error-registering-plugin/178307 "2019-04-24T17:55:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbeprem](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@cbeprem](https://discuss.elastic.co/u/cbeprem)\
**Post date:** [April 24, 2019, 5:55pm UTC](https://discuss.elastic.co/t/logstash-error-registering-plugin/178307/1 "2019-04-24T17:55:26Z")

</div>

I am getting the following error. while trying to run S3 input

[2019-04-24T17:46:30,448][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>2, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50}  
[2019-04-24T17:46:31,280][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>, :added=\>[[http://elastic:xxxxxx@104.248.72.193:5601/](http://elastic:xxxxxx@104.248.72.193:5601/)]}}  
[2019-04-24T17:46:31,811][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>"[http://elastic:xxxxxx@104.248.72.193:5601/](http://elastic:xxxxxx@104.248.72.193:5601/)"}  
[2019-04-24T17:46:31,975][ERROR][logstash.pipeline] Error registering plugin {:pipeline\_id=\>"main", :plugin=\>"#LogStash::OutputDelegator:0x25300336", :error=\>"Unexpected character ('\<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: (byte)"\<html lang="en"\>\<meta charset="utf-8"\>\<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"\>\<meta name="viewport" content="width=device-width"\>Kibana@font-face {\n font-family: 'Open Sans';\n font-style: normal;\n font-weight: 300;\n src: local('Open Sans Light'), local('OpenSans-Light'),\n url('/ui/fonts/open\_sans/open\_sans\_v15\_latin\_300.woff2') format('woff2'),\n url('/ui/fonts/open\_sans/open\_sans\_v15\_latin\_300.woff') format('woff'),"[truncated 68711 bytes]; line: 1, column: 2]", :thread=\>"#\<Thread:0x6b36d161 run\>"}  
[2019-04-24T17:46:31,985][ERROR][logstash.pipeline] Pipeline aborted due to error {:pipeline\_id=\>"main", :exception=\>#\<LogStash::Json::ParserError: Unexpected character ('\<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

This is my config file

input {  
s3 {  
"access\_key\_id" =\> " "  
"secret\_access\_key" =\> " "  
"region" =\> "us-east-1"  
"bucket" =\> "reports"  
"prefix" =\> "year=2019/month=04/day=24/zipcode=2304/"  
"interval" =\> "10"  
"additional\_settings" =\> {  
"force\_path\_style" =\> true  
"follow\_redirects" =\> false  
}  
}  
}

output {  
elasticsearch {  
hosts =\> "[http://104.248.72.193:5601](http://104.248.72.193:5601)"  
index =\> "logs"  
user =\> "elastic"  
password =\> " "  
}  
}

logstash-6.6.1-1.noarch

Plugin version

logstash-output-s3 (4.1.7)  
logstash-output-sns (4.0.7)  
logstash-output-sqs (5.1.2)  
logstash-output-stdout (3.1.4)  
logstash-output-tcp (5.0.4)  
logstash-output-udp (3.0.6)  
logstash-output-webhdfs (3.0.6)  
logstash-patterns-core (4.1.2)

Regards,  
Prem.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 24, 2019, 6:43pm UTC](https://discuss.elastic.co/t/logstash-error-registering-plugin/178307/2 "2019-04-24T18:43:20Z")

</div>

My guess is that the elasticsearch output is connecting to port 5601 and instead of an elasticsearch instance that returns JSON it is finding a Kibana instance that returns HTML. Should the port number be 9200?

---

<div class="post-metadata">

**Author:** ![cbeprem](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@cbeprem](https://discuss.elastic.co/u/cbeprem)\
**Post date:** [April 24, 2019, 7:09pm UTC](https://discuss.elastic.co/t/logstash-error-registering-plugin/178307/3 "2019-04-24T19:09:54Z")

</div>

Thank you

---

<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:** [May 22, 2019, 7:09pm UTC](https://discuss.elastic.co/t/logstash-error-registering-plugin/178307/4 "2019-05-22T19:09:55Z")

</div>

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