# Filebeat Xpack

**URL:** <https://discuss.elastic.co/t/filebeat-xpack/132867>\
**Category:** Elasticsearch\
**Created:** [May 22, 2018, 5:48pm UTC](https://discuss.elastic.co/t/filebeat-xpack/132867 "2018-05-22T17:48:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![surendrakotte](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@surendrakotte](https://discuss.elastic.co/u/surendrakotte)\
**Post date:** [May 22, 2018, 5:48pm UTC](https://discuss.elastic.co/t/filebeat-xpack/132867/1 "2018-05-22T17:48:00Z")

</div>

Hello,

I am a newbie to ELK. I configured Elasticsearch/Kibana/FileBeat, config was working till xpack was installed. xpack authentication works fine for ElasticSearch/Kibana but filebeat has issues on restart:

2018-05-22T13:32:31.988-0400 ERROR elasticsearch/elasticsearch.go:165 Error connecting to Elasticsearch at :9200: 401 Unauthorized: {"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security\_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}  
2018-05-22T13:32:31.991-0400 INFO [monitoring] log/log.go:132 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":10,"time":16},"total":{"ticks":30,"time":38,"value":30},"user":{"ticks":20,"time":22}},"info":{"ephemeral\_id":"e4c3e081-0a84-4105-98ba-3f8cdc9f4fc4","uptime":{"ms":23}},"memstats":{"gc\_next":4194304,"memory\_alloc":2987648,"memory\_total":2987648,"rss":12853248}},"filebeat":{"harvester":{"open\_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"elasticsearch"},"pipeline":{"clients":0,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"cpu":{"cores":4},"load":{"1":2.75,"15":1.83,"5":1.69,"norm":{"1":0.6875,"15":0.4575,"5":0.4225}}}}}}  
2018-05-22T13:32:31.991-0400 INFO [monitoring] log/log.go:133 Uptime: 26.700097ms  
2018-05-22T13:32:31.991-0400 INFO [monitoring] log/log.go:110 Stopping metrics logging.  
2018-05-22T13:32:31.991-0400 ERROR instance/beat.go:667 Exiting: Error importing Kibana dashboards: fail to create the Elasticsearch loader: Error creating Elasticsearch client: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://:9200: 401 Unauthorized: {"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security\_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}]  
Exiting: Error importing Kibana dashboards: fail to create the Elasticsearch loader: Error creating Elasticsearch client: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://:9200: 401 Unauthorized: {"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security\_exception","reason":"missing authentication token for REST request [/]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}]

Can anyone help with this?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [May 23, 2018, 1:20am UTC](https://discuss.elastic.co/t/filebeat-xpack/132867/2 "2018-05-23T01:20:12Z")

</div>

It doesn't look like you configured any authentication credentials in your Filebeat config.  
We have docs on how to configure Beats to work with X-Pack:

- [https://www.elastic.co/guide/en/beats/filebeat/6.2/securing-beats.html](https://www.elastic.co/guide/en/beats/filebeat/6.2/securing-beats.html)

---

<div class="post-metadata">

**Author:** ![surendrakotte](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@surendrakotte](https://discuss.elastic.co/u/surendrakotte)\
**Post date:** [May 23, 2018, 10:25pm UTC](https://discuss.elastic.co/t/filebeat-xpack/132867/3 "2018-05-23T22:25:58Z")

</div>

Tim,

Following instructions i was able to bring up the server and ingest data from remote to ES.

Thanks,  
Surendra.

---

<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:** [June 20, 2018, 10:26pm UTC](https://discuss.elastic.co/t/filebeat-xpack/132867/4 "2018-06-20T22:26:00Z")

</div>

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