-
Notifications
You must be signed in to change notification settings - Fork 333
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 Pipeline is not working for OTLP logs #5356
Comments
Can you check if |
No but I used
|
I've made some modifications to this demo. I extracted only the Body field and wrote it to GreptimeDB. it works fine. pipeline file processors:
transform:
- fields:
- Body,body
type: string alloy config
I can get this table in GreptimeDB mysql> select * from alloy_meta_logs\G
*************************** 1. row ***************************
body: {"ts":"2025-01-15T04:18:04.605693944Z","level":"error","msg":"Exporting failed. Dropping data.","component_path":"/","component_id":"otelcol.exporter.otlphttp.greptimedb_logs","error":"not retryable error: Permanent error: rpc error: code = InvalidArgument desc = error exporting items, request to http://greptimedb:4000/v1/otlp/v1/logs responded with HTTP Status Code 400","dropped_items":1}
greptime_timestamp: 2025-01-15 04:18:04.605572
*************************** 2. row ***************************
body: {"ts":"2025-01-15T04:18:19.321469329Z","level":"info","msg":"Done replaying WAL","component_path":"/","component_id":"prometheus.remote_write.metrics_service","subcomponent":"rw","remote_name":"d2df62","url":"http://greptimedb:4000/v1/prometheus/write?db=public","duration":17008218529}
greptime_timestamp: 2025-01-15 04:18:19.323454
2 rows in set (0.01 sec) But one thing not mentioned in the documentation is. The key name used in OpenTelemetry is as follows
Can you provide the binary data sent by otelcollector. |
What type of bug is this?
Unexpected error
What subsystems are affected?
Distributed Cluster
Minimal reproduce step
My otelcollector config looks like below
It has an exporter for exporting logs to greptime (
otlphttp/glogs
)When I extract keys using the header
X-Greptime-Log-Extract-Keys
the tablelogs
created in greptime has those keys as columns, which is rightBut I am not able to do the same with pipeline.
My sample pipeline yaml
otelpipeline.yaml
is as belowI created a pipeline using
The logs of my daemon set shows
So the keys
Resource attributes, Attributes, Body
etc should be availableHowever, I see the below error in
greptimedb-cluster-frontend
podI tried changing the
processors.dissect[0].fields
to Attributes and Body but I still get the errorsI even tried using the
events
endpoint in my exporter to push logs, still getting the same errorsSo I am not able to push logs from otelcollector daemonset to greptime using pipelines
What did you expect to see?
With a proper pipeline yaml I expected to see a table
logs
created in thepublic_logs
database of greptime with below descriptionWhat did you see instead?
Errors in
greptimedb-cluster-frontend
podWhat operating system did you use?
aks cluster (OS: Ubuntu 22.04.4 LTS)
What version of GreptimeDB did you use?
0.11.2
Relevant log output and stack trace
No response
The text was updated successfully, but these errors were encountered: