-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCustom_Rule_Visualization.json
49 lines (49 loc) · 1.08 KB
/
Custom_Rule_Visualization.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"title": "Apache All Logs Traces ",
"data": {
"url": {
"%context%": true,
"%timefield%": "@timestamp",
"index": "filebeat-*",
"body": {
"aggs": {
"time_buckets": {
"date_histogram": {
"field": "@timestamp",
"interval": {
"%autointerval%": true
},
"extended_bounds": {
"min": {
"%timefilter%": "min"
},
"max": {
"%timefilter%": "max"
}
},
"min_doc_count": 0
}
}
},
"size": 0
}
},
"format": {
"property": "aggregations.time_buckets.buckets"
}
},
"mark": "rule",
"encoding": {
"x": {
"field": "key",
"type": "temporal",
"axis": {"title": "Day-wise Apache Logs"}
},
"y": {
"field": "doc_count",
"type": "quantitative",
"axis": {"title": "Number of Hits"}
}
}
}