#get all the log events by logtype with a single value tomcat
curl -XGET 'http://ES_HOST_SERVER:9200/INDEX_NAME/153299/_search' -d '{
"query" : {
"term" : { "logtype" : "tomcat" }
}
}
'
#get all the log events by logtype with value tomcat or tomcat1
curl -XGET 'http://ES_HOST_SERVER:9200/INDEX_NAME/153299/_search' -d '{
"query" : {
"terms" : { "logtype" : ["tomcat", "tomcat1"],
"minimum_match" : 1
}
}
}
'
#get all the log events by logtype and logpath
curl -XGET 'http://ES_HOST_SERVER:9200/INDEX_NAME/153299/_search' -d '{
"query" : {
"term" : { "logtype" : "tomcat",
"logpath" : "/var/log/"
}
}
}
'
#get first 20 log events by log type and logpath
curl -XGET 'http://ES_HOST_SERVER:9200/INDEX_NAME/153299/_search' -d '{
"from" : 0, "size" : 20,
"query" : {
"term" : { "logtype" : "tomcat",
"logpath" : "/var/log/"
}
}
}
'
#get first 20 log events by log type and logpath, sort by timestamp
curl -XGET 'http://ES_HOST_SERVER:9200/INDEX_NAME/153299/_search' -d '{
"from" : 0, "size" : 20,
"sort" : [
{ "timestamp" : {"order" : "asc"} }
],
"query" : {
"term" : { "logtype" : "tomcat",
"logpath" : "/var/log/"
}
}
}
'
#get first 20 log events by log type and logpath, sort by timestamp, timestamp range from 5000 to 1000
curl -XGET 'http://ES_HOST_SERVER:9200/INDEX_NAME/153299/_search' -d '{
"from" : 25, "size" : 5,
"filter" : {
"range" : {
"timestamp" : { "from" : 5000, "to" : 10000 }
}
},
"sort" : [
{ "timestamp" : {"order" : "asc"} }
] ,
"query" : {
"term" : { "logtype" : "tomcat",
"logpath" : "/var/log/"
}
}
}
'
分享到:
相关推荐
赠送原API文档:elasticsearch-rest-high-level-client-6.8.3-javadoc.jar; 赠送源代码:elasticsearch-rest-high-level-client-6.8.3-sources.jar; 赠送Maven依赖信息文件:elasticsearch-rest-high-level-client...
赠送原API文档:elasticsearch-rest-client-6.8.3-javadoc.jar; 赠送源代码:elasticsearch-rest-client-6.8.3-sources.jar; 赠送Maven依赖信息文件:elasticsearch-rest-client-6.8.3.pom; 包含翻译后的API文档...
赠送原API文档:elasticsearch-rest-high-level-client-6.8.3-javadoc.jar; 赠送源代码:elasticsearch-rest-high-level-client-6.8.3-sources.jar; 赠送Maven依赖信息文件:elasticsearch-rest-high-level-client...
赠送原API文档:elasticsearch-rest-client-6.3.0-javadoc.jar; 赠送源代码:elasticsearch-rest-client-6.3.0-sources.jar; 赠送Maven依赖信息文件:elasticsearch-rest-client-6.3.0.pom; 包含翻译后的API文档...
赠送原API文档:elasticsearch-rest-client-6.2.3-javadoc.jar; 赠送源代码:elasticsearch-rest-client-6.2.3-sources.jar; 赠送Maven依赖信息文件:elasticsearch-rest-client-6.2.3.pom; 包含翻译后的API文档...
赠送原API文档:elasticsearch-rest-client-6.3.0-javadoc.jar; 赠送源代码:elasticsearch-rest-client-6.3.0-sources.jar; 赠送Maven依赖信息文件:elasticsearch-rest-client-6.3.0.pom; 包含翻译后的API文档...
赠送原API文档:elasticsearch-rest-client-6.8.3-javadoc.jar; 赠送源代码:elasticsearch-rest-client-6.8.3-sources.jar; 赠送Maven依赖信息文件:elasticsearch-rest-client-6.8.3.pom; 包含翻译后的API文档...
赠送原API文档:elasticsearch-rest-client-6.2.3-javadoc.jar; 赠送源代码:elasticsearch-rest-client-6.2.3-sources.jar; 赠送Maven依赖信息文件:elasticsearch-rest-client-6.2.3.pom; 包含翻译后的API文档...
java运行依赖jar包
java运行依赖jar包
赠送原API文档:elasticsearch-6.2.3-javadoc.jar; 赠送源代码:elasticsearch-6.2.3-sources.jar; 赠送Maven依赖信息文件:elasticsearch-6.2.3.pom; 包含翻译后的API文档:elasticsearch-6.2.3-javadoc-API文档...
赠送原API文档:elasticsearch-x-content-6.3.0-javadoc.jar; 赠送源代码:elasticsearch-x-content-6.3.0-sources.jar; 赠送Maven依赖信息文件:elasticsearch-x-content-6.3.0.pom; 包含翻译后的API文档:...
java运行依赖jar包
赠送原API文档:elasticsearch-6.3.0-javadoc.jar; 赠送源代码:elasticsearch-6.3.0-sources.jar; 赠送Maven依赖信息文件:elasticsearch-6.3.0.pom; 包含翻译后的API文档:elasticsearch-6.3.0-javadoc-API文档...
适用于7.17.1系列,例如Elasticsearch的7.17.12版本。 elasticsearch-analysis-ik 是一个常用的中文分词器,在 Elasticsearch 中广泛应用于中文文本的分析和搜索。下面是 elasticsearch-analysis-ik 分词器的几个...
最新版windows elasticsearch-8.8.2-windows-x86_64.zip最新版windows elasticsearch-8.8.2-windows-x86_64.zip最新版windows elasticsearch-8.8.2-windows-x86_64.zip最新版windows elasticsearch-8.8.2-windows-...
赠送原API文档:elasticsearch-6.8.3-javadoc.jar; 赠送源代码:elasticsearch-6.8.3-sources.jar; 赠送Maven依赖信息文件:elasticsearch-6.8.3.pom; 包含翻译后的API文档:elasticsearch-6.8.3-javadoc-API文档...
赠送原API文档:elasticsearch-x-content-6.3.0-javadoc.jar; 赠送源代码:elasticsearch-x-content-6.3.0-sources.jar; 赠送Maven依赖信息文件:elasticsearch-x-content-6.3.0.pom; 包含翻译后的API文档:...
《Elasticsearch分词器:elasticsearch-analysis-ik-7.16.2深度解析》 在信息爆炸的时代,搜索引擎的效能成为了数据检索的关键。Elasticsearch作为一款强大的开源搜索引擎,其灵活性和可扩展性备受青睐。而在中文...
赠送原API文档:elasticsearch-x-content-6.8.3-javadoc.jar; 赠送源代码:elasticsearch-x-content-6.8.3-sources.jar; 赠送Maven依赖信息文件:elasticsearch-x-content-6.8.3.pom; 包含翻译后的API文档:...