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

logs do not displayed in UI when Loki and visualize logs both in Grafana and through Jenkins #946

Open
ArieLevs opened this issue Sep 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ArieLevs
Copy link

ArieLevs commented Sep 15, 2024

Jenkins and plugins versions report

Environment
plugin version 3.1320.v2eededb_d909e

What Operating System are you using (both controller, and any agents involved in the problem)?

Jenkins 2.452.2
Jenkins in kubernetes, default agent is jenkins/inbound-agent:jdk17

Reproduction steps

  1. configure Jenkins otel plugin to Store pipeline logs In Loki and visualize logs both in Grafana and through Jenkins
  2. then configure Jenkins otel plugin to Don't store pipeline logs in Loki
  3. configure again for Store pipeline logs In Loki and visualize logs both in Grafana and through Jenkins

Expected Results

logs should be visible in Grafana + Loki again

Actual Results

logs are displayed in Grafana only, UI console logs no longer visible with error

Caught exception evaluating: it.writeLogTo(offset,output) in /job/xxxx/job/xxxx/view/change-requests/job/PR-148/4/console. 
Reason: com.jayway.jsonpath.PathNotFoundException: 
Expected to find an object with property ['data'] in path $ 
but found 'java.lang.String'. 

This is not a json object according to the JsonProvider: 'com.jayway.jsonpath.spi.json.JsonSmartJsonProvider'.

Anything else?

No response

Are you interested in contributing a fix?

No response

@cyrille-leclerc
Copy link
Contributor

cyrille-leclerc commented Sep 20, 2024

@ArieLevs Please give details on the Loki instance you are accessing (version...)

@ArieLevs
Copy link
Author

ArieLevs commented Sep 29, 2024

@cyrille-leclerc sorry for the delay, Loki is a V3 version, installed to k8s using loki helm chart from https://grafana.github.io/helm-charts chart version is 6.6.5
app version is 3.0.0, deployment mode is Distributed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants