When I create cluster I do execute this command before doing anything and setup my password.
then restart cluster with adding my ssl files in config etc..
now you are using some use logstash_internal but I don't know what role you have for it.
first use user elastic and see it it work.
if does then it is user grant problem.
I use elastic credential in logstash but not work. Kibana accpeted elastic credential for authentication.
What's I do wrong ?
I have seen this error in logstash:
< [INFO ] 2022-08-31 15:09:25.218 [Ruby-0-Thread-9: :1] elasticsearch - Failed to perform request {:message=>"192.168.0.35:9200 failed to respond", :exception=>Manticore::ClientProtocolException, :cause=>#<Java::OrgApacheHttp::NoHttpResponseException: 192.168.0.35:9200 failed to respond>}
[WARN ] 2022-08-31 15:09:25.219 [Ruby-0-Thread-9: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://elastic:xxxxxx@192.168.0.35:9200/", :exception=>LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://192.168.0.35:9200/][Manticore::ClientProtocolException] 192.168.0.35:9200 failed to respond"} />
I used /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic to change elastic password.
The error is the same, only change is that in the top a use a production enviroment(ip 172.20.6.206) and the last post I am using the lab enviroment(192.68.0.35).
I try implement security in my stack because a need use observality for use alert of my logs.
I want create a rule to analyse my logs and send it for other server. For instance, when um rule reached a condition this log will send to other server(SIEM for example).
Silas you need to understand that if you implement ssl your instances will use the "https" instead of "http" this could mean a lot of things but first you have to switch your configuration to use "https"
Elasticsearch will not answer you on HTTP ! please use HTTPS
You also need to ensure connectivity between logstash and elastic that's why doing the curl request from localhost is useless unless you just try the syntax of the command.
Please perform a request from logstash to elastic with curl.
You can also use this bash tricks which check if the port is open at the TCP level :
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.