简体   繁体   中英

How to search Json message in Kibana elasticSearch

I am using ElasticSearch Kibana dashboard with the following fields

host
_id
_score
index
message

of which message is a json string having values like

{"version": "3.4.2", "model": "EX2308", "orders": "50"}

I am searching for lucene query to search this JSON message having

orders > 30 and version > 3.4

Any help is appreciated

[Updated]

I am using logback-elasticsearch-appender to push messages into ElasticSearch using SLF4j

log.info(new org.json.JSONOject(arg).toString());

您只需在搜索字段中输入以下 Lucene 查询:

message.orders:>30 AND message.version:>3.4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM