[[http_auth]]
== --http_auth

[float]
Summary
~~~~~~~

Allow basic HTTP authentication (e.g. `user:pass`) to an Elasticsearch instance.

[float]
Flags
~~~~~

* `--http_auth` A username and password in the format of `username:password`.
Default value is `None`

IMPORTANT: This flag must come before any <<commands,command>>.

[float]
Example
~~~~~~~

Connect to an elasticsearch instance protected by basic HTTP authentication:

------------------------------------------------------------------------------
curator --host es-host --port 9443 --http_auth user:pass <<command>> <<flags>>
------------------------------------------------------------------------------
