> error. {:url=>"http://admin:xxxxxx@172.16.249.184:9200/",
> :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError,
> :error=>"Got response code '401' contacting Elasticsearch at URL
> 'http://172.16.249.184:9200/'"}
> [2019-10-02T16:46:18,714][WARN ][logstash.outputs.elasticsearch]
> Attempted to resurrect connection to dead ES instance, but got an
> error. {:url=>"http://admin:xxxxxx@172.16.249.184:9200/",
> :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError,
> :error=>"Got response code '401' contacting Elasticsearch at URL
> 'http://172.16.249.184:9200/'"}
> [2019-10-02T16:46:24,004][WARN ][logstash.outputs.elasticsearch]
> Attempted to resurrect connection to dead ES instance, but got an
> error. {:url=>"http://admin:xxxxxx@172.16.249.184:9200/",
[2019-10-02T16:46:13,321][WARN ][logstash.outputs.elasticsearch]
Attempted to resurrect connection to dead ES instance,
:error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError,
:error=>"Got response code '401' contacting Elasticsearch at URL
'http://172.16.249.184:9200/'"}![]()
2. Click on Users at the Security section.

3. Create a new user.
To change the API credentials:
1. Use the following commands
cd /var/ossec/api/configuration/authnode htpasswd -Bc -C 10 user insertuserhereAnd then type your password.
2. Restart wazuh-api and wazuh-manager --> systemctl restart wazuh-api and systemctl restart wazuh-manager
In order to use HTTPS at the host URL of the API, you need to secure the wazuh-api. For that, you can use a script at /var/ossec/api/scripts/configure_api.sh. You can check the script documentation here: /var/ossec/api/scripts/configure_api.sh
I hope it helps. Let me know if you need anything else.
Best Regards,
Jose Manuel Lopez
Hello Rick,
You can add new users directly from Kibana. For that you can follow these steps:1. In Kibana, go to Management.
2. Click on Users at the Security section.
3. Create a new user.
To change the API credentials:
1. Use the following commands
cd /var/ossec/api/configuration/authnode htpasswd -Bc -C 10 user insertuserhere
And then type your password.
2. Restart wazuh-api and wazuh-manager --> systemctl restart wazuh-api and systemctl restart wazuh-manager
In order to use HTTPS at the host URL of the API, you need to secure the wazuh-api. For that, you can use a script at /var/ossec/api/scripts/configure_api.sh. You can check the script documentation here: /var/ossec/api/scripts/configure_api.sh
I hope it helps. Let me know if you need anything else.
Best Regards,
Jose Manuel Lopez
Ok, I didn't know this, I'm going to try.I hope it helps. Let me know if you need anything else.
I have a problem loading the wazu app in kibana, I get this error: wazuhapp Check Elasticsearch template error , I attach the image