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

Fix #224 - Enable advanced log routing when running Logagent with Docker #231

Merged
merged 13 commits into from
May 7, 2020

Conversation

adnanrahic
Copy link
Contributor

@adnanrahic adnanrahic commented May 6, 2020

This PR fixes #224 and enables fine-grained log routing with Docker.

I've added another env var option. LOGS_RECEIVER_URLS will enable adding multiple receiver URLs in a comma separated list. These URLs need to contain the token/index of the Elasticsearch endpoint as well.

The existing LOGS_RECEIVER_URL env var is now limited to one endpoint and requires adding the LOGS_TOKEN as a separate env var.

It is now possible to add LOGS_TOKEN and LOGS_RECEIVER_URL to the env vars of containers you want to ship logs for. Setting them on a container-basis will overwrite default settings. Using it with LA_CONFIG_OVERRIDE=true with LOGS_ENABLED_DEFAULT=false in the Logagent container env vars will let you disable log shipping for all containers except for container where you set LOGS_ENABLED=true, LOGS_TOKEN, and LOGS_RECEIVER_URL.

@adnanrahic adnanrahic self-assigned this May 6, 2020
@adnanrahic adnanrahic merged commit 97b2c1d into master May 7, 2020
@adnanrahic adnanrahic deleted the fix-docker-log-routing branch May 7, 2020 07:51
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

Successfully merging this pull request may close these issues.

Enable advanced log routing when running Logagent with Docker
1 participant