Skip to content

Commit

Permalink
update line filter
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhdaze committed Jun 28, 2024
1 parent f9276db commit 2a81aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grafana_dashboards/BMC.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
"uid": "${lokids}"
},
"editorMode": "builder",
"expr": "{instance=\"$instance_var\"} |= `ipmiseld` | pattern `<raw>\"<_>\"` | regexp `(?P<log_time>\\w+\\s*\\d{1,2} \\d+:\\d+:\\d+) (?P<host>.+?) (?P<pid>\\S+): (SEL System Event: (?P<bmc_time>\\w{3}-\\d{2}-\\d{4}, \\d{2}:\\d{2}:\\d{2}), )?(?P<msg>.*)` | line_format `{{ if .bmc_time }}{{ .bmc_time | replace \"-\" \" \" }}{{ else }}{{ .log_time }}{{ end }}`",
"expr": "{instance=\"$instance_var\"} |~ \"ipmiseld\\\\[\\\\d+\\\\]\" | pattern `<raw>\"<_>\"` | regexp `(?P<log_time>\\w+\\s*\\d{1,2} \\d+:\\d+:\\d+) (?P<host>.+?) (?P<pid>\\S+): (SEL System Event: (?P<bmc_time>\\w{3}-\\d{2}-\\d{4}, \\d{2}:\\d{2}:\\d{2}), )?(?P<msg>.*)` | line_format `{{ if .bmc_time }}{{ .bmc_time | replace \"-\" \" \" }}{{ else }}{{ .log_time }}{{ end }}`",
"queryType": "range",
"refId": "A"
}
Expand Down

0 comments on commit 2a81aff

Please sign in to comment.