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

Remote logging can drop log lines #16851

Open
anoadragon453 opened this issue Jan 24, 2024 · 1 comment
Open

Remote logging can drop log lines #16851

anoadragon453 opened this issue Jan 24, 2024 · 1 comment

Comments

@anoadragon453
Copy link
Member

anoadragon453 commented Jan 24, 2024

Description

Remote logging is a feature that allows for sending logging to a remote network resource, as opposed to a local file or the console. Relevant Synapse documentation.

A report from @clokep in #synapse-dev.

Remote logging is fairly broken, just an FYI. It can end up dropping log lines during (re)connection and some other situations. This might render structured logging not as useful.

@Half-Shot chimed in to state that a workaround used in the past was to instead log to disk, and then scrape the resulting files.

@clokep said:

It was something with the way the produced was paused and started IIRC:

https://github.com/matrix-org/synapse/blob/d58dd1d1ff283d14ada805c72aa0b704087ac9b4/synapse/logging/_remote.py#L47

Steps to reproduce

Remote logging can be configured in the logging config. See the bottom of https://element-hq.github.io/synapse/v1.99/structured_logging.html#structured-logging.

@clokep
Copy link
Contributor

clokep commented Jan 24, 2024

Probably worth checking the clokep/ branches -- I wrote a test to reproduce the behavior

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

No branches or pull requests

2 participants