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

Send Logs To Loki while Still Preserving Console Output #841

Closed
BbBaboo42 opened this issue May 2, 2024 · 5 comments
Closed

Send Logs To Loki while Still Preserving Console Output #841

BbBaboo42 opened this issue May 2, 2024 · 5 comments
Labels
backend/grafana enhancement New feature or request

Comments

@BbBaboo42
Copy link

What feature do you want to see added?

In the Grafana Visualization Observability Backend, you currently must choose between:

  1. Don't store pipeline logs in Loki
  2. Store pipeline logs In Loki and visualize logs exclusively in Grafana (logs no longer visible through Jenkins screens)

While I do want the logs to be sent to Loki, I still need for the Console Output to exist, for other Jenkins plugins such as BlueOcean, Pipeline Overview and others.

Upstream changes

No response

Are you interested in contributing this feature?

No response

@BbBaboo42 BbBaboo42 added the enhancement New feature or request label May 2, 2024
@chewrocca
Copy link

I believe this may be related. #773

@BbBaboo42
Copy link
Author

BbBaboo42 commented May 16, 2024

I now see that configuring otel.logs.mirror_to_disk=true in the plugin configuration does achieve my goal.
However, It is very strange that for me to collect the build logs to loki, I have to add a Grafana Visualization Backend, and under its advanced option choose:
Store pipeline logs in Loki and visualize logs exclusively in Grafana (logs no longer visible through Jenkins Controler)

Which I then supposed to cancel out with the configuration otel.logs.mirror_to_disk=true

@cyrille-leclerc
Copy link
Contributor

cyrille-leclerc commented Jun 5, 2024

FYI

PR above is about mirroring pipeline logs in Jenkins and Loki.
A subsequent improvement would be to display in Jenkins logs stored in Loki so we no longer need to mirror logs in order to display logs in Jenkins GUIs

@cyrille-leclerc
Copy link
Contributor

FYI PR above is merged and released

FYI New feature in progress to close the gap:

@cyrille-leclerc
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend/grafana enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants