Unsuccesful startup of ElastAlerts to Elasticsearch v8, due to cert errors #1188
Replies: 2 comments
Answer selected by
avatar333
-
Good day! Well, as I said, it was something stupid I was doing, as your suggestion did the trick! Thank you very much for the assistance, I look forward to now truly exploring the software! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good day, all
My thanks to the team who maintains this software, it really does look like a great piece of work. However, I have not been able to get it to work against an Elasticsearch v8x cluster (I spun up a fresh machine with Docker to play around with this) due to issue with find out exactly what certs to use.
Versions in use:
Firewall ports are confirmed as open between the host running the ElastAlert and the ElasticSearch nodes.
I installed the cluster 100% according to the installation guide (Using .rpm and followed these steps for the TLS: https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html#rpm-security-configuration [the out-the-box TLS setup method]) and it works fine. I am able to curl from the CLI (of the ElastAlert without issue:
/etc/elasticsearch/certs/
(on each elasticsearch host, this is an example of one below):I copied the cert that works with the curl and used it for the client_key parameter, without luck
I tried converting the http.p12 file to a .pem file (from these links), and tried using it for both the ca_certs and client_cert parameter:
This one: How to use a certificate to connect to an ES cluster #586
Then from the one above, this one: Rule query is not accurate Yelp/elastalert#3228 (specifically the command
openssl pkcs12 -clcerts -nokeys -in http.p12 -out ca.pem
)Docker log error, lots of the same, ending in this:
Now, I imagine it's not working due to something stupid I'm doing, but I can't figure out what (certs are not my strong suit).
What files from a default installation method must I use for the ElastAlert config? Or, what additional manual procedure, using the files generated by the default installation, must I complete to convert/transform them for use?
Any assistance would be appreciated!
Regards,
Kevin
Beta Was this translation helpful? Give feedback.
All reactions