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

[logging] allow custom message format #271

Open
tobwen opened this issue Jun 6, 2021 · 0 comments
Open

[logging] allow custom message format #271

tobwen opened this issue Jun 6, 2021 · 0 comments

Comments

@tobwen
Copy link

tobwen commented Jun 6, 2021

preface

I'm using conmon with podman. Since some containerized applications don't have good logging support, I'm using journald to capture the logs from conmon. For longtime storage, I'm processing the logs using rsyslog.

What's my issue?

Although conmon exported the container name and tags into journld, these details aren't part of the syslog export. It's impossible to filter out by container name. So rsyslog has to use the imjournal module, which makes all the tags available - but with way trouble in performance.

Jun  6 20:00:00 debian conmon[12975]: 2021-06-06 20:00:00.000 UTC [2] LOG:  database system is shut down

What might be a possible solution?

Allow configuring the syslog message.

Jun  6 20:00:00 debian conmon[12975]: $CONTAINER-NAME 2021-06-06 20:00:00.000 UTC [2] LOG:  database system is shut down

or

Jun  6 20:00:00 debian conmon-$CONTAINER-NAME[12975]: 2021-06-06 20:00:00.000 UTC [2] LOG:  database system is shut down

etc.

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

No branches or pull requests

1 participant