[Fluentd Setup]Some special Postgresql slow sql was not shown in Show statements #10486
Replies: 15 comments 3 replies
-
This seems not a legal JSON. Maybe need to enhance fluentd config? @yswdqz |
Beta Was this translation helpful? Give feedback.
-
This is log in flunt-bit: Skywalking oap can get messages normally and Flunt-bit and Skywalking OAP are normal(not show any problems) |
Beta Was this translation helpful? Give feedback.
-
|
If you want to address issues, you could debug the log receiver by yourself. |
Beta Was this translation helpful? Give feedback.
-
I debuged running Skywalking oap, It could get a slow sql json(json in the screenshot above), But the slow sql is not stored in the Elasticsearch. The problem is that Skywalking oap handle slow sql json |
Beta Was this translation helpful? Give feedback.
-
|
This description doesn't help. We never process logs based on the content(SQL text). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
@kezhenxu94 Any guess from LAL engine perspective? |
Beta Was this translation helpful? Give feedback.
-
|
I have tested local, and the log of fluent-bit is : |
Beta Was this translation helpful? Give feedback.
-
It has nothing to do with what you're saying,this sql with pg_sleep as (select * from pg_sleep(1.4)) select * from pg_sleep can display in Slow statements |
Beta Was this translation helpful? Give feedback.
-
|
Please help explain,
Please help explain,Thanks |
Beta Was this translation helpful? Give feedback.
-
|
Moved to the discussion, as this isn't a clear bug for now. @zhouqt0528 Issue is for tracking known things. |
Beta Was this translation helpful? Give feedback.
-
|
@yswdqz my the log of flunt-bit: |
Beta Was this translation helpful? Give feedback.
-
|
I found that, in |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
@yswdqz I expect this kind of sql can be display normally in the Slow statements, We need it very much, thanks a lot |
Beta Was this translation helpful? Give feedback.












Uh oh!
There was an error while loading. Please reload this page.
-
Search before asking
Apache SkyWalking Component
OAP server (apache/skywalking)
What happened
Our project wasing using skywalking to monitor Postgresql slow and found a problem: with "pg_sleep" as (select * from pg_sleep(1.4)) select * from "pg_sleep", This sql was not shown in Show statements, But this sql "with pg_sleep as (select * from pg_sleep(1.4)) select * from pg_sleep" display normally. I debuged running Skywalking oap, It could get a message("with pg_sleep as (select * from pg_sleep(1.4)) select * from pg_sleep"), But it is not stored in the Elasticsearch(We use elasticsearch as the store). That should be a problem.
NOTE:The Skywalking OAP did not show any problems
What you expected to happen
I expect this type of sql to display normally in the Slow statements(ex sql: with "pg_sleep" as (select * from pg_sleep(1.4)) select * from "pg_sleep"),
Skywalking version: 9.3.0,
fluent-bit version: 2.0.9
fluent-bit log:
[{"date":1677836101.832795,"body":{"json":{"json":"{"statement":" 1404.043 ms statement: with "pg_sleep" as (select * from pg_sleep(1.4)) select * from "pg_sleep";","query_time":1404,"service":"postgresql::postgres:5432","id":"34bacb9e-aea6-6246-49e5-14ace3d4848c","layer":"POSTGRESQL","time":1677836101000}"}},"tags":{"data":[{"value":"SLOW_SQL","key":"LOG_KIND"}]},"service":"postgresql::postgres:5432","layer":"POSTGRESQL"}]
[2023/03/03 17:36:44] [ info] [output:http:http.1] 10.255.13.133:12800, HTTP status=200
How to reproduce
Skywalking monitor Postgresql,
Enabling Postgresql slow
execute the following sql
sql:
with "pg_sleep" as (select * from pg_sleep(1.4)) select * from "pg_sleep"
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions