#support

Troubleshooting K8s POD's Log Alert Creation

TLDR chintan faced issues setting up log alerts using Query Builder. After confirmation from Ankit that it works now and help from vishal-signoz to adjust the time period, chintan resolved the issue.

Powered by Struct AI

1

1

6
4mo
Solved
Join the chat
Aug 07, 2023 (4 months ago)
chintan
Photo of md5-5160a496f51f350885fb9a7bc6b8004b
chintan
06:57 PM
I did setup few Log based alert for K8s POD's log through Query Builder but didn't generate alert then i came to know about this
Note: Presently the logs, traces and exceptions-based alerts support only Clickhouse Query based metric.

Dose that means i have to write ClickHouse query only and can't use Query Builder available into "Create an Alert" section ? is that correct ?
Image 1 for I did setup few Log based alert for K8s POD's log through `Query Builder` but didn't generate alert then i came to know about <https://signoz.io/docs/userguide/alerts-management/#steps-to-create-alert-rules|this>
```Note: Presently the logs, traces and exceptions-based alerts support only Clickhouse Query based metric.```
Dose that means i have to write `ClickHouse query` only and can't use `Query Builder` available into "Create an Alert" section ? is that correct ?
Ankit
Photo of md5-dbe7088320fe1d922707613e02f3420d
Ankit
07:29 PM
I think this is old...you can use query builder now. cc Ashu

1

chintan
Photo of md5-5160a496f51f350885fb9a7bc6b8004b
chintan
07:43 PM
Thanks Ankit for response - in Log Section i can see result of 4 ERROR found but when I write same query in Alert it showing No data through Query Builder - we are at latest version v0.25.3. Let me know if I'm doing something wrong ... Ashu
Image 1 for Thanks <@4K143e> for response - in `Log` Section i can see result of 4 ERROR found but when I write same query in `Alert` it showing `No data` through `Query Builder` - we are at latest version v0.25.3. Let me know if I'm doing something wrong ... <@4K148a>Image 2 for Thanks <@4K143e> for response - in `Log` Section i can see result of 4 ERROR found but when I write same query in `Alert` it showing `No data` through `Query Builder` - we are at latest version v0.25.3. Let me know if I'm doing something wrong ... <@4K148a>
Aug 08, 2023 (4 months ago)
vishal-signoz
Photo of md5-f936d3e5743d23344d6c60813189716f
vishal-signoz
03:20 AM
It might be possible that error has not occurred recently. Can you try to generate error again and check?
03:26
vishal-signoz
03:26 AM
Also try updating the time period to 24 hrs, does it works?
Image 1 for Also try updating the time period to 24 hrs, does it works?
chintan
Photo of md5-5160a496f51f350885fb9a7bc6b8004b
chintan
08:00 PM
Thanks vishal-signoz after setting up duration in Step 2 - Define Alert Conditions i can see data in plot through Query Builder as well...
Image 1 for Thanks <@4K15aa> after setting up duration in *`Step 2 - Define Alert Conditions` i can see data in plot through `Query Builder` as well...*

1