考虑使用Elasticsearch cluster连续发送到Filebeat的日志流。
我想继续阅读Elasticsearch的日志流。毋庸置疑,ES没有流API,因此我必须使用连续的HTTP调用进行分页。
{
"size": 5,
"from": 0,
"sort": [
{
"@timestamp": {
"order": "desc",
"unmapped_type": "boolean"
}
}
],
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "source:*.log",
"analyze_wildcard": true
}
}
]
}
},
"_source": {
"include": ["message", "@timestamp"],
"exclude": "_*"
}
}
如何从Elasticsearch中分页日志条目流?