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

Duplicated Labels #37

Open
diegomvh opened this issue Jan 20, 2021 · 2 comments
Open

Duplicated Labels #37

diegomvh opened this issue Jan 20, 2021 · 2 comments

Comments

@diegomvh
Copy link

Hi @josephwoodward
I recently updated the library and logs stopped coming to grafana.
Investigating I saw that my code for various reasons generates duplicate labels.

HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
...

stream '{app="siu-api", app="siu-statics", username="anonymous", username="dvanhaaster", version="1.5.0"}' has duplicate label name: 'app'

In a previous version of the source code, I think, that this behavior was allowed and the effect is that the last added label prevailed.
The question: Is this behavior correct? Should I change my code?

Thank you

@cewee
Copy link

cewee commented Jan 26, 2021

I have (probably) the same problem. When upgrading from v2.2.0(respective 2.1.1.0) to v3.0.1 (Nuget) i receive no more log entries in Loki/Grafana. When i downgrade it works again.

@kaflake
Copy link

kaflake commented Feb 24, 2021

I have a simular problem. With 3.01. I do not get Labels, instead all is send as Parsed Fields.

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

3 participants