# Logstash 401 Error

**URL:** <https://discuss.elastic.co/t/logstash-401-error/234029>\
**Category:** Logstash\
**Created:** [May 24, 2020, 6:24am UTC](https://discuss.elastic.co/t/logstash-401-error/234029 "2020-05-24T06:24:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vikramaddagulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikramaddagulla/32/139858_2.png) [@vikramaddagulla](https://discuss.elastic.co/u/vikramaddagulla)\
**Post date:** [May 24, 2020, 8:40am UTC](https://discuss.elastic.co/t/logstash-401-error/234029/3 "2020-05-24T08:40:01Z")

</div>

> [@vikramaddagulla](#):
>
> r: Got response code '403' contacting Elasticsearch at URL '[http://localhost:9200/logstash](http://localhost:9200/logstash)'

Same issue was reported in : [LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError: Got response code '403' contacting Elasticsearch at URL 'http://localhost:9200/logstash'](https://discuss.elastic.co/t/logstash-got-response-code-403-contacting-elasticsearch-at-url-http-localhost-9200-logstash/194951)

That post got auto closed,,,

Any suggestions please ?

---

_[View the full topic](https://discuss.elastic.co/t/logstash-401-error/234029)._
