# Marvel error when ElasticSearch is secured

**URL:** https://discuss.elastic.co/t/marvel-error-when-elasticsearch-is-secured/57571
**Category:** Elasticsearch
**Created:** [August 9, 2016, 9:14am UTC](https://discuss.elastic.co/t/marvel-error-when-elasticsearch-is-secured/57571 "2016-08-09T09:14:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![KrishnaG](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@KrishnaG](https://discuss.elastic.co/u/KrishnaG)
#### Post date: [August 9, 2016, 9:14am UTC](https://discuss.elastic.co/t/marvel-error-when-elasticsearch-is-secured/57571/1 "2016-08-09T09:14:12Z")

</div>

We have three elasticsearch boxes: In the three boxes:

1. Master
2. Data
3. Search Load Balancer
4. Kibana
5. Logstash

is configured in all the three. I have been trying to configure Sheild and everything smooth and I even able to access the indices in secured fashion. But I have lot of marvel related errors in both master and data log files.

I have configured the following for marvel in search load balancer in all three boxes, do I need to do the same in master and data nodes as well?

Note: I don't see any marvel errors in SLB log file.

marvel.agent.exporters:  
id1:  
type: http  
host: ["https://IP\_ES1:9200","https://IP\_ES2:9200","https://IP\_ES3:9200"]

```
auth:
  username: marvel
  password: marvelPass

ssl:
  truststore.path: /etc/elasticsearch_search/truststore.jks
  truststore.password: marvelTrustPass

```

I'm confused.. since SLB is listening for ES\_Data on 9200 port, it sounds sense configuring the above in SLB, but then how could I avoid errors in both master and data if I shouldn't configure the above setting in those two nodes?

The error is:

[2016-08-09 09:12:17,735][ERROR][marvel.agent] [master\_elk\_IP\_ES2] background thread had an uncaught exception  
ElasticsearchException[failed to flush exporter bulks]  
at org.elasticsearch.marvel.agent.exporter.ExportBulk$Compound.flush(ExportBulk.java:104)  
at org.elasticsearch.marvel.agent.exporter.ExportBulk.close(ExportBulk.java:53)  
at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:201)  
at java.lang.Thread.run(Thread.java:745)  
Suppressed: ElasticsearchException[failed to flush [default\_local] exporter bulk]; nested: ElasticsearchException[unauthenticated request indices:data/write/bulk for user

Someone please help me.

---

<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: [July 5, 2017, 10:29pm UTC](https://discuss.elastic.co/t/marvel-error-when-elasticsearch-is-secured/57571/2 "2017-07-05T22:29:09Z")

</div>


