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

feat(accesslogs): allow filter accesslogs by service names whitelist #10488

Open
wants to merge 3 commits into
base: v3.0
Choose a base branch
from

Conversation

ttys3
Copy link

@ttys3 ttys3 commented Mar 1, 2024

What does this PR do?

Enhancements

allow filter accesslogs by service names whitelist

like this:

# Configuring Multiple Filters
accessLog:
  filePath: "/path/to/access.log"
  format: json
  filters:
    serviceNames:
      - "service1@file"
      - "service2@consulcatalog"
      - "service3@consulcatalog"

Motivation

we have traefik which proxy api requests to all kinds of service, its a very heavy server, we do not want traefik write all the logs, only a few kind of important service we want access logs.

currently there's no way to filter like this in traefik.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

@jspdown jspdown self-assigned this Mar 4, 2024
@kevinpollet kevinpollet removed this from the 3.0 milestone Apr 4, 2024
@jspdown jspdown removed their assignment May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants