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

Docs missing for elastic-agent proxy configuration #27845

Closed
nerophon opened this issue Sep 9, 2021 · 2 comments
Closed

Docs missing for elastic-agent proxy configuration #27845

nerophon opened this issue Sep 9, 2021 · 2 comments
Labels

Comments

@nerophon
Copy link

nerophon commented Sep 9, 2021

In 7.14.x it is possible to run Elastic Agent via proxy. There is a flag:
--proxy-url

However, currently this flag isn't documented. Note that proxy mode was actually broken in 7.14.0 and fixed in 7.14.1. Please see: #27114.

Note also we observed the following:

Elastic Agent appears to configure various Beats to send logging/metric data to Elasticsearch. In the configuration file for Filebeat (which is created by the Elastic Agent), it doesn't appear to have any configuration for using the proxy. From a quick glance it appears that the "enroll --proxy-url" option does nothing for the Beats.

By trial and error, we've gotten it to work using --proxy-url to enroll the agent and environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) so the Beats are also aware of the proxy settings. As we've used the RPM file to install the Elastic Agent (which runs as a Systemd service), we've had to configure Systemd to provide these Environment Variables to the elastic-agent.service.

This must also be documented; having said that, perhaps Agent should handle this when doing automatic configuration?

@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@dedemorton
Copy link
Contributor

Closing this issue as a duplicate because we are tracking the requirement here: elastic/observability-docs#593

From what I understand, there were some problems related to proxy support in 7.15. It is on our radar for 7.16. Thanks!

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

No branches or pull requests

3 participants