-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Push results in expecting IDENTIFIER #1347
Comments
yes ! I see the issue, on it. |
I'm having the same error, when using 1.2.4 with the fix:
This is the error:
This is. my config:
|
@omerlh I struggeld with the same problem and the error message does not really help. The problem is that you don't have any label in your push request (
|
I also have the same error, when using fluent-plugin-grafana-loki (1.2.11). And i have labels with push request. |
Take UserID from chunk instead of context
Describe the bug
When pushing data form
fluent-plugin-grafana-loki
the API call results in error:parse error at line 1, col 2: syntax error: unexpected }, expecting IDENTIFIER
This also occurs when trying to replicate the API call via curl.
To Reproduce
Steps to reproduce the behavior:
FROM grafana/loki:master-eb7b495
)fluent-plugin-grafana-loki-1.2.3
I also tried messing around with the
test.json
, giving differentline
andlabels
(escaping) but still the same error.This is a shorter json, the actual json, which is causing the error originates from the fluentd pluign.
Expected behavior
I expected the data to be stored in loki -> successful API call
Environment:
Loki logs just contain something like this:
The actual log error:
The text was updated successfully, but these errors were encountered: