kibana统计数据展示demo

更新时间:2023-05-21 12:18:17 阅读: 评论:0

kibana统计数据展⽰demo
kibana统计数据展⽰demo
数据有了。想做⼀个报表出来,却⼜不知道该怎么做。恰好⼿头有⼀个合适的商业demo,扣过来学习学习借鉴借鉴
再往下:
接下来是每⼀个的实现部分:
主机威胁-统计:
{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "*",
"analyze_wildcard": true
}
},
{
{
"query_string": {
"analyze_wildcard": true,
"query": "*"
}
},
{
"range": {
"timestamp": {
"gte": 1553011200000,
"lte": 1553097599000,
"format": "epoch_millis"
}
}
花样游泳}
],
"must_not": []
}
},
"size": 0,
"_source": {
"excludes": []
},
"aggs": {
"2": {
"date_histogram": {
"field": "timestamp",
"interval": "30m",
"time_zone": "Asia/Shanghai",        "min_doc_count": 1
}
}
},
"version": true,
"highlight": {
"pre_tags": [
"@kibana-highlighted-field@"    ],
"post_tags": [
"@/kibana-highlighted-field@"    ],
"fields": {
"*": {
我的未来不是梦演讲稿"highlight_query": {
"bool": {
"must": [
{
"query_string": {
"query": "*",
"analyze_wildcard": true,                  "all_fields": true
}
},
{
"query_string": {
"analyze_wildcard": true,                  "query": "*",
"all_fields": true
}
},
{
"range": {
"timestamp": {
"gte": 1553011200000,                    "lte": 1553097599000,                    "format": "epoch_millis"
"format": "epoch_millis"                  }
}
}
],
"must_not": []
}
}
}
},
"fragment_size": 2147483647
宿醉怎么办}
偷的成语}
主机威胁-源IP统计
{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "*",
"analyze_wildcard": true
}
},
{
"query_string": {
"analyze_wildcard": true,
"query": "*"
}
},
{
"range": {
"timestamp": {
"gte": 1553011200000,
"lte": 1553097599000,
"format": "epoch_millis"
}
}
}
],
"must_not": []
}
},
"size": 0,
"_source": {
"excludes": []
},
"aggs": {
"2": {
"terms": {
"field": "src_ip",
"size": 50,
"order": {
"_count": "desc"
}
}
}
},
"version": true,
"highlight": {
"pre_tags": [
"@kibana-highlighted-field@"    ],
"post_tags": [
"post_tags": [
"@/kibana-highlighted-field@"    ],
"fields": {
"*": {
"highlight_query": {
"bool": {
"must": [
{
"query_string": {
"query": "*",
"analyze_wildcard": true,                  "all_fields": true
}
},
{
"query_string": {
"analyze_wildcard": true,                  "query": "*",
"all_fields": true
}
},
{
nessary
"range": {
"timestamp": {
"gte": 1553011200000,                    "lte": 1553097599000,                    "format": "epoch_millis"                  }
}
}
],
"must_not": []
}
}
}
},
"fragment_size": 2147483647
}
}
主机威胁-⽬的IP统计
{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "*",
"analyze_wildcard": true
}
},
{
"query_string": {地字开头成语
"analyze_wildcard": true,
"query": "*"
}
},
{
"range": {
"timestamp": {
"gte": 1553011200000,
经常打嗝放屁"lte": 1553097599000,
"format": "epoch_millis"
}
}
}
}
],
"must_not": []
}
摇曳近义词},
"size": 0,
"_source": {
"excludes": []
},
"aggs": {
"2": {
"terms": {
"field": "dst_ip",
"size": 50,
"order": {
"_count": "desc"
}
}
}
},
"version": true,
"highlight": {
"pre_tags": [
"@kibana-highlighted-field@"    ],
"post_tags": [
"@/kibana-highlighted-field@"    ],
"fields": {
"*": {
"highlight_query": {
"bool": {
"must": [
{
"query_string": {
"query": "*",
"analyze_wildcard": true,                  "all_fields": true
}
},
{
"query_string": {
"analyze_wildcard": true,                  "query": "*",
"all_fields": true
}
},
{
"range": {
"timestamp": {
"gte": 1553011200000,                    "lte": 1553097599000,                    "format": "epoch_millis"                  }
}
}
],
"must_not": []
}
}
}
},
"fragment_size": 2147483647
}

本文发布于:2023-05-21 12:18:17,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/921865.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:学习   借鉴   成语   报表   部分   统计
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图