This repository has no description
1.9 kB
70 lines
1{
2 "uid": "logs",
3 "title": "Logs explorer",
4 "schemaVersion": 39,
5 "time": { "from": "now-1h", "to": "now" },
6 "templating": {
7 "list": [
8 {
9 "name": "host",
10 "type": "query",
11 "datasource": { "type": "victoriametrics-logs-datasource", "uid": "victorialogs" },
12 "query": {
13 "refId": "VictoriaLogsVariableQueryEditor-VariableQuery",
14 "type": "fieldValue",
15 "field": "host",
16 "query": "*",
17 "limit": 1000
18 },
19 "refresh": 2,
20 "sort": 1,
21 "multi": true,
22 "includeAll": true,
23 "allValue": "*",
24 "current": { "text": "All", "value": "$__all" }
25 },
26 {
27 "name": "unit",
28 "type": "query",
29 "datasource": { "type": "victoriametrics-logs-datasource", "uid": "victorialogs" },
30 "query": {
31 "refId": "VictoriaLogsVariableQueryEditor-VariableQuery",
32 "type": "fieldValue",
33 "field": "unit",
34 "query": "host:in($host)",
35 "limit": 1000
36 },
37 "refresh": 2,
38 "sort": 1,
39 "multi": true,
40 "includeAll": true,
41 "allValue": "*",
42 "current": { "text": "All", "value": "$__all" }
43 },
44 {
45 "name": "search",
46 "type": "textbox",
47 "query": "*",
48 "current": { "text": "*", "value": "*" }
49 }
50 ]
51 },
52 "panels": [
53 {
54 "id": 1,
55 "type": "logs",
56 "title": "Journal",
57 "gridPos": { "x": 0, "y": 0, "w": 24, "h": 24 },
58 "datasource": { "type": "victoriametrics-logs-datasource", "uid": "victorialogs" },
59 "options": { "showTime": true, "sortOrder": "Descending", "wrapLogMessage": true },
60 "targets": [
61 {
62 "refId": "A",
63 "queryType": "instant",
64 "expr": "host:in($host) unit:in($unit) $search",
65 "maxLines": 1000
66 }
67 ]
68 }
69 ]
70}