Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filebeat x509 certificate signed by unknown authority when calling api endpoint #377

Open
tom-morgan12 opened this issue Feb 9, 2023 · 1 comment

Comments

@tom-morgan12
Copy link

I am getting this error from filebeat:

2023-02-07 07:14:47 2023-02-07T15:14:47.204Z    ERROR   [input.httpjson-stateless]      v2/input.go:129 Error while processing http request: failed to execute http client.Do: failed to execute http client.Do: Get "https://abc.io/monitoring/logs/tail?source=newlog": Get "https://abc.io/monitoring/logs/tail?source=newlog": x509: certificate signed by unknown authority {"url": "https://abc.io/monitoring/logs/tail"}

I am running filebeat container image. So, I do not know how we can change the configuration or add some root ca chain so that the filebeat as a client can trust for the cert which is returned by server url https://abc.io/monitoring/logs/tail.

@spujadas
Copy link
Owner

General guidance on certificates for this image is provided here: https://elk-docker.readthedocs.io/#certificates
Information on changing the configuration of the image can be found here: https://elk-docker.readthedocs.io/#tweaking-the-image
Non-image-specific instructions on setting up certificates can be found here: https://www.elastic.co/guide/en/beats/filebeat/current/configuration-ssl.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants