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

Enrich logs with metadata #10219

Open
mr-karan opened this issue Mar 24, 2021 · 3 comments
Open

Enrich logs with metadata #10219

mr-karan opened this issue Mar 24, 2021 · 3 comments

Comments

@mr-karan
Copy link
Contributor

Proposal

Nomad logs which are placed inside the allocs directory capture the application logs from stdout/stderr directly. There are ways to get metadata using the docker driver, by using logging.config.labels property, thanks to #9885 which was merged recently. However, I am not sure if there's a way to get this metadata for other task drivers and enrich the logs in the same way. Currently Nomad is basically outsourcing the job of enriching the logs to Docker driver's capabilities. Does it make sense for Nomad to have this feature built in?

Use-cases

Can get logs with additional context like Job ID, Name, Namespace etc for all jobs started with any task execution driver.

@tgross
Copy link
Member

tgross commented Mar 24, 2021

Hi @mr-karan! There's been a few high-level requests around improving the logging story (ref). It's definitely something we want to do and we want to make sure we're tackling the problem holistically. Thanks for opening this issue! I'll mark it for roadmapping.

@mr-karan
Copy link
Contributor Author

Bump.

Would love to see logging get some more ❤️ for non docker drivers 😄

@tgross tgross added this to Needs Triage in Nomad - Community Issues Triage via automation May 26, 2022
@tgross tgross moved this from Needs Triage to Needs Roadmapping in Nomad - Community Issues Triage May 26, 2022
@mr-karan
Copy link
Contributor Author

mr-karan commented Jun 17, 2022

In case anyone's interested in a stop gap solution, I made a small program which I plan to use with vector https://github.com/mr-karan/nomad-vector-logger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Roadmapping
Development

No branches or pull requests

2 participants