log prefix detection, pattern>regexp
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
"fiscalYearStartMonth": 0,
|
"fiscalYearStartMonth": 0,
|
||||||
"gnetId": 17139,
|
"gnetId": 17139,
|
||||||
"graphTooltip": 0,
|
"graphTooltip": 0,
|
||||||
"id": 7,
|
"id": 3,
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"asDropdown": false,
|
"asDropdown": false,
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
"text": {},
|
"text": {},
|
||||||
"textMode": "auto"
|
"textMode": "auto"
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.2.1",
|
"pluginVersion": "9.3.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
"uid": "P8E80F9AEF21F6940"
|
"uid": "P8E80F9AEF21F6940"
|
||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"expr": "count_over_time({job=\"syslog\", routerboard=\"$routerboard\"} [$__interval] | pattern \"<prefix>:<_>\" |~\"(?i)$topics\" |~\"(?i)$searchable_pattern\" !~\"(?i)$exclude\")",
|
"expr": "count_over_time({job=\"syslog\", routerboard=\"$routerboard\"} [$__interval] |regexp \"(?P<prefix>\\\\w+)\\\\: \" |~\"(?i)$topics\" |~\"(?i)$searchable_pattern\" !~\"(?i)$exclude\")",
|
||||||
"legendFormat": "{{prefix}}",
|
"legendFormat": "{{prefix}}",
|
||||||
"queryType": "range",
|
"queryType": "range",
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
@@ -228,7 +228,7 @@
|
|||||||
},
|
},
|
||||||
"description": "",
|
"description": "",
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"h": 17,
|
"h": 23,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 7
|
"y": 7
|
||||||
@@ -240,7 +240,7 @@
|
|||||||
"prettifyLogMessage": false,
|
"prettifyLogMessage": false,
|
||||||
"showCommonLabels": false,
|
"showCommonLabels": false,
|
||||||
"showLabels": false,
|
"showLabels": false,
|
||||||
"showTime": true,
|
"showTime": false,
|
||||||
"sortOrder": "Descending",
|
"sortOrder": "Descending",
|
||||||
"wrapLogMessage": false
|
"wrapLogMessage": false
|
||||||
},
|
},
|
||||||
@@ -274,8 +274,8 @@
|
|||||||
{
|
{
|
||||||
"current": {
|
"current": {
|
||||||
"selected": false,
|
"selected": false,
|
||||||
"text": "MKT-GT-PD",
|
"text": "MKT-GT",
|
||||||
"value": "MKT-GT-PD"
|
"value": "MKT-GT"
|
||||||
},
|
},
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "loki",
|
"type": "loki",
|
||||||
@@ -302,7 +302,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"current": {
|
"current": {
|
||||||
"selected": false,
|
"selected": true,
|
||||||
"text": [
|
"text": [
|
||||||
"All"
|
"All"
|
||||||
],
|
],
|
||||||
@@ -533,13 +533,13 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
"from": "now-6h",
|
"from": "now-12h",
|
||||||
"to": "now"
|
"to": "now"
|
||||||
},
|
},
|
||||||
"timepicker": {},
|
"timepicker": {},
|
||||||
"timezone": "",
|
"timezone": "",
|
||||||
"title": "Mikrotik Loki Logs",
|
"title": "Mikrotik Loki Logs",
|
||||||
"uid": "awslix6doiakp-mkt-loki",
|
"uid": "awslix6doiakp-mkt-loki",
|
||||||
"version": 8,
|
"version": 1,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user