# Marvel and basic\_auth

**URL:** https://discuss.elastic.co/t/marvel-and-basic-auth/15476
**Category:** Elasticsearch
**Created:** [January 29, 2014, 2:37pm UTC](https://discuss.elastic.co/t/marvel-and-basic-auth/15476 "2014-01-29T14:37:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Al\_Smith](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Al\_Smith](https://discuss.elastic.co/u/Al_Smith)
#### Post date: [January 29, 2014, 2:37pm UTC](https://discuss.elastic.co/t/marvel-and-basic-auth/15476/1 "2014-01-29T14:37:59Z")

</div>

Perhaps a silly question, and yes I've RTFM'd the online documenation - I'd  
like to know how to tell Marvel to use a username and password (and  
basic\_auth) to talk to the ES servers? We have jetty configured to deny  
write access without user/pass and of course Marvel needs to know what  
those credentials are.

Thanks,  
A.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2b645948-79a3-442a-81f6-734a4b015d78%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b645948-79a3-442a-81f6-734a4b015d78%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)
#### Post date: [January 30, 2014, 1:15am UTC](https://discuss.elastic.co/t/marvel-and-basic-auth/15476/2 "2014-01-30T01:15:33Z")

</div>

Hi Al,

try settings the following in your elasticsearch.yml:

marvel.agent.exporter.es.hosts: ["user:passwd@host:9200"]

Cheers,  
Boaz

On Wednesday, January 29, 2014 3:37:59 PM UTC+1, Al Smith wrote:

> Perhaps a silly question, and yes I've RTFM'd the online documenation -  
> I'd like to know how to tell Marvel to use a username and password (and  
> basic\_auth) to talk to the ES servers? We have jetty configured to deny  
> write access without user/pass and of course Marvel needs to know what  
> those credentials are.
> 
> Thanks,  
> A.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f8fad19a-6e0a-49d9-8cc5-01cc03fe11f1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f8fad19a-6e0a-49d9-8cc5-01cc03fe11f1%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Al\_Smith](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Al\_Smith](https://discuss.elastic.co/u/Al_Smith)
#### Post date: [January 30, 2014, 8:24am UTC](https://discuss.elastic.co/t/marvel-and-basic-auth/15476/3 "2014-01-30T08:24:32Z")

</div>

Thanks Boaz... tried that, and it doesn't seem to want to use the  
credentials; from tcpdumping on lo I can see that it wants to do a PUT to  
/\_template/marvel, doesn't try supplying auth credentials and of course it  
gets a 401 back. It doesn't seem to want to retry the request with  
authentication credentials.

Regards,  
Al.

On Thursday, January 30, 2014 2:15:33 AM UTC+1, Boaz Leskes wrote:

> Hi Al,
> 
> try settings the following in your elasticsearch.yml:
> 
> marvel.agent.exporter.es.hosts: ["user:passwd@host:9200"]
> 
> Cheers,  
> Boaz
> 
> On Wednesday, January 29, 2014 3:37:59 PM UTC+1, Al Smith wrote:
> 
> > Perhaps a silly question, and yes I've RTFM'd the online documenation -  
> > I'd like to know how to tell Marvel to use a username and password (and  
> > basic\_auth) to talk to the ES servers? We have jetty configured to deny  
> > write access without user/pass and of course Marvel needs to know what  
> > those credentials are.
> > 
> > Thanks,  
> > A.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/22b75ea5-519c-409a-adbd-411d986c52c0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/22b75ea5-519c-409a-adbd-411d986c52c0%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)
#### Post date: [January 30, 2014, 10:59am UTC](https://discuss.elastic.co/t/marvel-and-basic-auth/15476/4 "2014-01-30T10:59:00Z")

</div>

Hi Al,

This noted and we'll look into it. Thanks for reporting.

Cheers,  
Boaz

On Thursday, January 30, 2014 9:24:32 AM UTC+1, Al Smith wrote:

> Thanks Boaz... tried that, and it doesn't seem to want to use the  
> credentials; from tcpdumping on lo I can see that it wants to do a PUT to  
> /\_template/marvel, doesn't try supplying auth credentials and of course it  
> gets a 401 back. It doesn't seem to want to retry the request with  
> authentication credentials.
> 
> Regards,  
> Al.
> 
> On Thursday, January 30, 2014 2:15:33 AM UTC+1, Boaz Leskes wrote:
> 
> > Hi Al,
> > 
> > try settings the following in your elasticsearch.yml:
> > 
> > marvel.agent.exporter.es.hosts: ["user:passwd@host:9200"]
> > 
> > Cheers,  
> > Boaz
> > 
> > On Wednesday, January 29, 2014 3:37:59 PM UTC+1, Al Smith wrote:
> > 
> > > Perhaps a silly question, and yes I've RTFM'd the online documenation -  
> > > I'd like to know how to tell Marvel to use a username and password (and  
> > > basic\_auth) to talk to the ES servers? We have jetty configured to deny  
> > > write access without user/pass and of course Marvel needs to know what  
> > > those credentials are.
> > > 
> > > Thanks,  
> > > A.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0d781d14-5d05-4555-bf83-9b002a347f7a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0d781d14-5d05-4555-bf83-9b002a347f7a%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)
#### Post date: [February 4, 2014, 3:59pm UTC](https://discuss.elastic.co/t/marvel-and-basic-auth/15476/5 "2014-02-04T15:59:06Z")

</div>

Hey Al,

We just release marvel 1.0.2, which contains support for basic auth for the  
data shipping. Can you give it a spin?  
See: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/marvel/current/#configuration)

Cheers,  
Boaz

On Thursday, January 30, 2014 11:59:00 AM UTC+1, Boaz Leskes wrote:

> Hi Al,
> 
> This noted and we'll look into it. Thanks for reporting.
> 
> Cheers,  
> Boaz
> 
> On Thursday, January 30, 2014 9:24:32 AM UTC+1, Al Smith wrote:
> 
> > Thanks Boaz... tried that, and it doesn't seem to want to use the  
> > credentials; from tcpdumping on lo I can see that it wants to do a PUT to  
> > /\_template/marvel, doesn't try supplying auth credentials and of course it  
> > gets a 401 back. It doesn't seem to want to retry the request with  
> > authentication credentials.
> > 
> > Regards,  
> > Al.
> > 
> > On Thursday, January 30, 2014 2:15:33 AM UTC+1, Boaz Leskes wrote:
> > 
> > > Hi Al,
> > > 
> > > try settings the following in your elasticsearch.yml:
> > > 
> > > marvel.agent.exporter.es.hosts: ["user:passwd@host:9200"]
> > > 
> > > Cheers,  
> > > Boaz
> > > 
> > > On Wednesday, January 29, 2014 3:37:59 PM UTC+1, Al Smith wrote:
> > > 
> > > > Perhaps a silly question, and yes I've RTFM'd the online documenation -  
> > > > I'd like to know how to tell Marvel to use a username and password (and  
> > > > basic\_auth) to talk to the ES servers? We have jetty configured to deny  
> > > > write access without user/pass and of course Marvel needs to know what  
> > > > those credentials are.
> > > > 
> > > > Thanks,  
> > > > A.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/76e7421d-bfcd-47fe-b691-7b5d33ecb867%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/76e7421d-bfcd-47fe-b691-7b5d33ecb867%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Al\_Smith](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Al\_Smith](https://discuss.elastic.co/u/Al_Smith)
#### Post date: [February 11, 2014, 1:49pm UTC](https://discuss.elastic.co/t/marvel-and-basic-auth/15476/6 "2014-02-11T13:49:56Z")

</div>

Works great - thanks for the quick turnaround!

Regards,  
Al.

---- Original message ----

> From: Boaz Leskes  
> To: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> Cc:  
> Date: 04/02/2014 16:59:00  
> Subject: Re: Marvel and basic\_auth
> 
> Hey Al,
> 
> We just release marvel 1.0.2, which contains support for basic auth for the  
> data shipping. Can you give it a spin?  
> See: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/marvel/current/#configuration)
> 
> Cheers,  
> Boaz
> 
> On Thursday, January 30, 2014 11:59:00 AM UTC+1, Boaz Leskes wrote:
> 
> > Hi Al,
> > 
> > This noted and we'll look into it. Thanks for reporting.
> > 
> > Cheers,  
> > Boaz
> > 
> > On Thursday, January 30, 2014 9:24:32 AM UTC+1, Al Smith wrote:
> > 
> > > Thanks Boaz... tried that, and it doesn't seem to want to use the  
> > > credentials; from tcpdumping on lo I can see that it wants to do a PUT to  
> > > /\_template/marvel, doesn't try supplying auth credentials and of course it  
> > > gets a 401 back. It doesn't seem to want to retry the request with  
> > > authentication credentials.
> > > 
> > > Regards,  
> > > Al.
> > > 
> > > On Thursday, January 30, 2014 2:15:33 AM UTC+1, Boaz Leskes wrote:
> > > 
> > > > Hi Al,
> > > > 
> > > > try settings the following in your elasticsearch.yml:
> > > > 
> > > > marvel.agent.exporter.es.hosts: ["user:passwd@host:9200"]
> > > > 
> > > > Cheers,  
> > > > Boaz
> > > > 
> > > > On Wednesday, January 29, 2014 3:37:59 PM UTC+1, Al Smith wrote:
> > > > 
> > > > > Perhaps a silly question, and yes I've RTFM'd the online documenation -  
> > > > > I'd like to know how to tell Marvel to use a username and password (and  
> > > > > basic\_auth) to talk to the ES servers? We have jetty configured to deny  
> > > > > write access without user/pass and of course Marvel needs to know what  
> > > > > those credentials are.
> > > > > 
> > > > > Thanks,  
> > > > > A.
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/1ScH7sTV6kU/unsubscribe](https://groups.google.com/d/topic/elasticsearch/1ScH7sTV6kU/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/76e7421d-bfcd-47fe-b691-7b5d33ecb867%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/76e7421d-bfcd-47fe-b691-7b5d33ecb867%40googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/alpine.WNT.2.00.1402111449450.18840%40ajsmith1-w7.nbttech.com](https://groups.google.com/d/msgid/elasticsearch/alpine.WNT.2.00.1402111449450.18840%40ajsmith1-w7.nbttech.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 1:51am UTC](https://discuss.elastic.co/t/marvel-and-basic-auth/15476/7 "2017-07-06T01:51:04Z")

</div>


