Skip to content

Commit

Permalink
updated log panel expressions to filter on filename or log_type
Browse files Browse the repository at this point in the history
  • Loading branch information
algchoo committed Jul 12, 2024
1 parent a98152c commit a76e462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions squid-mixin/dashboards/squid-overview.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ local cacheLogsPanel(matcher) = {
{
datasource: lokiDatasource,
editorMode: 'code',
expr: '{filename="/var/log/squid/cache.log", ' + matcher + '} |= ``',
expr: '{' + matcher + '} |= `` | (filename="/var/log/squid/cache.log" or log_type="cache")',
queryType: 'range',
refId: 'A',
},
Expand All @@ -1336,7 +1336,7 @@ local accessLogsPanel(matcher) = {
{
datasource: lokiDatasource,
editorMode: 'code',
expr: '{filename="/var/log/squid/access.log", ' + matcher + '} |= ``',
expr: '{' + matcher + '} |= `` | (filename="/var/log/squid/access.log" or log_type="access")',
queryType: 'range',
refId: 'A',
},
Expand Down

0 comments on commit a76e462

Please sign in to comment.