Skip to content

Conversation

@Kronusus
Copy link

Implement a TCP access log handler that logs connection start and end events, including client/server addresses, bytes in/out, duration, client certificate and errors. - Integrate the TCP access log middleware globally at the entrypoint/server level, mirroring HTTP access log behavior. - Enable TCP access logging via the global static configuration (accessLog), with no per-router or manual wiring required. - Ensure thread-safe log writes and support for both JSON and text log formats.

What does this PR do?

This PR Implements a TCP access log handler that logs connection start and end events, including client/server addresses, bytes in/out, duration, client certificate and errors.

  • Integrate the TCP access log middleware globally at the entrypoint/server level, mirroring HTTP access log behavior.
  • Enable TCP access logging via the global static configuration (accessLog), with no per-router or manual wiring required.
  • Ensure thread-safe log writes and support for both JSON and text log formats.

Motivation

resolves #7800

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Early Pull Request draft --> I tested the feature on my end with some demo set-ups, but would appreciate some feedback if it goes in the right direction and if something should be changed to make a merge possible.

Implement a TCP access log handler that logs connection start and end events, including client/server addresses, bytes in/out, duration, client certificate and errors. - Integrate the TCP access log middleware globally at the entrypoint/server level, mirroring HTTP access log behavior. - Enable TCP access logging via the global static configuration (accessLog), with no per-router or manual wiring required. - Ensure thread-safe log writes and support for both JSON and text log formats.
@kevinpollet
Copy link
Member

Hello @Kronusus and thanks for your contribution,

We have set the status to "design-review" to allow us to check the PR and ensure there is no deep impact on Traefik before moving forward.

We will keep you updated once the analysis is done.

@JosiahWhite
Copy link

How is that design-review going?

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.

Access log for TCP routers

4 participants