Denys Zorinets
08/18/2026, 11:35 PM{
"request": {
"url": "api/ds/query?ds_type=info8fcc-greptimedb-datasource&requestId=SQR123",
"method": "POST",
"data": {
"queries": [
{
"refId": "A",
"hide": false,
"datasource": {
"type": "info8fcc-greptimedb-datasource",
"uid": "Greptimedb"
},
"editorType": "sql",
"format": 1,
"meta": {
"builderOptions": {
"columns": [],
"database": "",
"limit": 1000,
"meta": {},
"mode": "list",
"queryType": "table",
"table": ""
},
"timezone": "America/New_York"
},
"pluginVersion": "2.1.4",
"queryType": "table",
"rawSql": "SELECT greptime_timestamp as time, \"message.traceId\", \"message.spanId\", \"message.error.message\", \"message.message\", FROM logs.\"k8s_app_logs\" WHERE greptime_timestamp BETWEEN $__fromTime and $__toTime AND level = 'ERROR' ORDER BY greptime_timestamp DESC LIMIT 1000",
"datasourceId": 7,
"intervalMs": 5000,
"maxDataPoints": 1066
}
],
"from": "1787087854703",
"to": "1787094539531"
},
"hideFromInspector": false
},
"response": {
"results": {
"A": {
"error": "greptime http 400: {\"code\":3000,\"error\":\"Failed to plan SQL: No field named \\\"message.traceId\\\". Valid fields are logs.k8s_app_logs.greptime_timestamp, logs.k8s_app_logs.k8s_cluster, logs.k8s_app_logs.message, logs.k8s_app_logs.namespace, logs.k8s_app_logs.observed_timestamp, logs.k8s_app_logs.level.\",\"execution_time_ms\":3}",
"errorSource": "downstream",
"status": 500,
"frames": [],
"refId": "A"
}
}
}
}
The interesting part is that the error says the parsed fields such as message.traceId do not exist, while the identity pipeline is successfully creating/populating these fields.
There is also another related issue when I use the MySQL connector. In that case, I don't get an error, but instead of returning the field value, Grafana displays the column name itself as a string. For example, if I query:
SELECT "k8s_app_logs.k8s_cluster" FROM ...
the result is literally k8s_app_logs.k8s_cluster rather than the value stored in that field.
Could you please take a look and let me know if this is a known issue with the Grafana plugin, or if there is something I may be missing in the configuration?
Thanks!
:::changlong sun
08/19/2026, 2:36 AMSELECT "k8s_app_logs.k8s_cluster" just returns that text and never reads the column.
try
`DESC TABLE logs.`k8s_app_logs`;`
you can make this query to confirm the table schema when the error occured.Denys Zorinets
08/19/2026, 1:39 PMNing
08/20/2026, 1:56 AMshow create table logs.k8s_app_logs ? could you show us those different output?Denys Zorinets
08/20/2026, 11:06 AMCREATE TABLE IF NOT EXISTS "k8s_app_logs" ( "greptime_timestamp" TIMESTAMP(9) NOT NULL, "k8s_cluster" STRING NULL, "message" STRING NULL, "namespace" STRING NULL, "observed_timestamp" STRING NULL, "application" STRING NULL, "environment" STRING NULL, "timestamp" STRING NULL, "application_instance" STRING NULL, "level" STRING NULL, TIME INDEX ("greptime_timestamp") ) ENGINE=mito WITH( append_mode = 'true' )
Second have much more columns (this is partial response - its tool large) We have hundreds of applications and each have its own log format 🤕:Ning
08/24/2026, 2:53 AMmessage.traceId in log entries, so the column will be created.
Otherwise, you will need to create the table with all required fields ahead of time, or use alter table command to add column to existing tables to add those essential columns.Denys Zorinets
08/24/2026, 2:15 PMNing
08/25/2026, 1:49 PM