# Missing authentication token when combining metricbeat and logstash

**URL:** <https://discuss.elastic.co/t/missing-authentication-token-when-combining-metricbeat-and-logstash/70941>\
**Category:** Logstash\
**Created:** [January 9, 2017, 12:02pm UTC](https://discuss.elastic.co/t/missing-authentication-token-when-combining-metricbeat-and-logstash/70941 "2017-01-09T12:02:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutasaputra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gutasaputra/32/10472_2.png) [@gutasaputra](https://discuss.elastic.co/u/gutasaputra)\
**Post date:** [January 9, 2017, 12:02pm UTC](https://discuss.elastic.co/t/missing-authentication-token-when-combining-metricbeat-and-logstash/70941/1 "2017-01-09T12:02:24Z")

</div>

helo, i have an issue with metricbeat.  
before i install xpack, metricbeat running very well.

but suddenly after i install xpack, i cant access it from my kibana.  
i run this command in my terminal :

> curl -XGET '[http://localhost:9200/metricbeat-\*/\_search?pretty](http://localhost:9200/metricbeat-*/_search?pretty)'

but i got this error msg

> missing authentication token for REST request [/metricbeat-\*/\_search?pretty]

i already changed my metricbeat.yml

> # Optional protocol and basic auth credentials.
> 
> #protocol: "https"  
> username: "elastic"  
> password: "techno2013"

> #output.logstash:
> 
> # The Logstash hosts
> 
> hosts: ["localhost:5044"]

but i still got the same error msg.  
pls guys help me out.

thank you.

PS :  
actually i already post this on

> [@Missing authentication token MetricBeat](https://discuss.elastic.co/t/missing-authentication-token-metricbeat/70912):
>
> helo, i have an issue with metricbeat. before i install xpack, metricbeat running very well. but suddenly after i install xpack, i cant access it from my kibana. i run this command in my terminal : curl -XGET 'http://localhost:9200/metricbeat-\*/\_search?pretty' but i got this error msg missing authentication token for REST request [/metricbeat-\*/\_search?pretty] i already changed my metricbeat.yml # Optional protocol and basic auth credentials. #protocol: "https" username: "elastic…

but the forum that i assigned is metricbeat, not logstash.  
based on responses from the other users, they suggest me to repost this to logstash forum.

thanks

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 12, 2017, 6:04pm UTC](https://discuss.elastic.co/t/missing-authentication-token-when-combining-metricbeat-and-logstash/70941/2 "2017-01-12T18:04:13Z")

</div>

It sounds like you enabled authentication for Elasticsearch. Then you have to provide authentication credentials in your curl commands. I don't see how that's related to either Logstash or Metricbeat.

---

<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:** [February 9, 2017, 6:04pm UTC](https://discuss.elastic.co/t/missing-authentication-token-when-combining-metricbeat-and-logstash/70941/3 "2017-02-09T18:04:43Z")

</div>

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