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

Add to Promtail user_id, override unit if we have a _systemd_user_unit #136

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

karandit
Copy link
Contributor

Problem: we would like to see the logs also for user-level systemd services, until now we saw only accumulated from all services from a user which was inconvenient ([email protected])

Solution: Extend promtail to add also the user_id and in the case of user-level services use the value of the _systemd_user_unit instead of _systemd_unit which is usually init.scope

@karandit karandit force-pushed the karandit/OPS-1469-promtail-user-unit branch from ce524e4 to 6babb15 Compare July 31, 2023 07:50
@karandit karandit requested a review from a team July 31, 2023 07:50
@karandit karandit merged commit 1163122 into master Jul 31, 2023
1 check passed
@delete-merged-branch delete-merged-branch bot deleted the karandit/OPS-1469-promtail-user-unit branch July 31, 2023 09:11
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.

2 participants