Skip to content

Commit 53e5f83

Browse files
committed
articles
1 parent 8c15226 commit 53e5f83

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

docs/home-lab/articles/ai-log-summary.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,4 +345,24 @@ When the AI reports a "Critical" error, use Grafana to investigate.
345345
**Recommended LogQL Query:**
346346
To see the raw data the AI analyzed:
347347
```logql
348-
{job=~".+"} != "docker-socket-proxy" |= "error"
348+
{job=~".+"} != "docker-socket-proxy" |= "error"
349+
```
350+
*shows all logs from the edge host but removes the noisy traefik and crowdsec logs so you can see system issues*
351+
352+
```logql
353+
{host="edge"} != "traefik" != "crowdsec"
354+
```
355+
*shows all logs from the edge host but removes the noisy traefik and crowdsec logs so you can see system issues*
356+
357+
```logql
358+
sum by (container_name) (count_over_time({job="docker"} |= "error" [1m]))
359+
```
360+
*counts the number of errors per container over the last minute*
361+
362+
| Source | Goal | Query |
363+
|----------|-------------------|--------------------------------------------------|
364+
| Docker | See Raw AI Data | `{job=~".+"} != "docker-socket-proxy"` |
365+
| Docker | Filter Noise | `{host="edge"} != "traefik" != "crowdsec"` |
366+
| Hardware | Search Unifi Logs | `{job="syslog"}` |
367+
| Metrics | Live Error Count | `sum(count_over_time({job="docker"}))` |
368+

0 commit comments

Comments
 (0)