-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkibana.json
69 lines (63 loc) · 1 KB
/
kibana.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# 1. Search For Everything
# 2. Search for the most recent published event
# 3. Search for the most recent subscribed event
# 4. Search for events within the last 24hours
# 5. From github
# 1. Search for everything.
GET pubsub-registry/_search
{
"query": {
"match_all": {}
}
}
# 2. Search for the most recent published event
GET pubsub-registry/_search
{
"query":{
"match": {
"serviceName": "deamon"
}
},
"size": 10,
"sort":[
{
"timestamp.keyword": {
"order": "desc"
}
}
]
}
# 3. Search for the most recent subscribed event
GET pubsub-registry/_search
{
"query":{
"match": {
"actionType": "subscribe"
}
},
"size": 1,
"sort":[
{
"timestamp.keyword": {
"order": "desc"
}
}
]
}
}
# 4. Search for events within the last 24hours
GET pubsub-registry/_search
{
"sort": [{
"timestamp.keyword": {
"order": "desc"
}
}],
"query":{
"range":{
"timestamp.keyword": {
"gte": "(now-24h)"
}
}
}
}