# Logstash to Elasticsearch error

**URL:** https://discuss.elastic.co/t/logstash-to-elasticsearch-error/74865
**Category:** Elasticsearch
**Created:** [February 13, 2017, 11:02am UTC](https://discuss.elastic.co/t/logstash-to-elasticsearch-error/74865 "2017-02-13T11:02:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vinay\_dvd](https://avatars.discourse-cdn.com/v4/letter/v/3d9bf3/32.png) [@vinay\_dvd](https://discuss.elastic.co/u/vinay_dvd)
#### Post date: [February 13, 2017, 11:02am UTC](https://discuss.elastic.co/t/logstash-to-elasticsearch-error/74865/1 "2017-02-13T11:02:11Z")

</div>

Hi,

I am new to ELK and facing an initial hurdle.  
Could someone please help me with the error: **_error=\>"Got response code '401' contacting Elasticsearch at URL '[http://localhost:9200/](http://localhost:9200/)'"}_**

My logstash config is as below:

input {  
beats {  
port =\> "5043"  
}  
}  
filter {  
grok {  
match =\> { "message" =\> "%{COMBINEDAPACHELOG}"}  
}  
geoip {  
source =\> "clientip"  
}  
}  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
user =\> logstash\_internal  
password =\> changeme  
}  
}

---

<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 13, 2017, 11:02am UTC](https://discuss.elastic.co/t/logstash-to-elasticsearch-error/74865/2 "2017-03-13T11:02:42Z")

</div>

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