I am installing the elastic agent with sudo ./elastic-agent install --url=https://<FLEET URL> --enrollment-token=<token> --insecure
In the output of sudo elastic-agent inspect there is
ssl:
renegotiation: never
verification_mode: none
but in the output of sudo elastic-agent logs there are errors for Error dialing x509: certificate signed by unknown authority and no data is being ingested from any agents. I thought that adding --insecure would prevent these errors?
How did you set up Elasticsearch, Kibana and Fleet?
Did you run
elastic-agent status
Can you share that?
"message": "Failed to connect to backoff(elasticsearch(<fleet>)): Get \"<FLEET URL>\"
And to be sure that is the Fleet URL and Port because it kind of looks like Elasticsearch meaning it may be the connection to Elasticsearch not Fleet. Agents get Policies from Fleet but send telemetry Directly to Elasticsearch
And that connection information is set as the Outputs In the Fleet Settings
Did you set that up correctly?
Basically you're going to need to include that CA fingerprint if you have a self-signed cert
Elasticsearch CA trusted fingerprint HEX encoded SHA-256 of a CA certificate. If this certificate is present in the chain during the handshake, it will be added to the certificate_authorities list and the handshake will continue normally.
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.