如何在 Kibana elasticSearch 中搜索 Json 消息
How to search Json message in Kibana elasticSearch
我正在使用具有以下字段的 ElasticSearch Kibana 仪表板
host
_id
_score
index
message
其中 message 是一个 json 字符串,其值类似于
{"version": "3.4.2", "model": "EX2308", "orders": "50"}
我正在搜索 lucene 查询以搜索具有
的 JSON 消息
orders > 30 and version > 3.4
感谢任何帮助
[更新]
我正在使用 logback-elasticsearch-appender 使用 SLF4j
将消息推送到 ElasticSearch
log.info(new org.json.JSONOject(arg).toString());
您只需在搜索字段中输入以下 Lucene 查询即可:
message.orders:>30 AND message.version:>3.4
我正在使用具有以下字段的 ElasticSearch Kibana 仪表板
host
_id
_score
index
message
其中 message 是一个 json 字符串,其值类似于
{"version": "3.4.2", "model": "EX2308", "orders": "50"}
我正在搜索 lucene 查询以搜索具有
的 JSON 消息orders > 30 and version > 3.4
感谢任何帮助
[更新]
我正在使用 logback-elasticsearch-appender 使用 SLF4j
将消息推送到 ElasticSearchlog.info(new org.json.JSONOject(arg).toString());
您只需在搜索字段中输入以下 Lucene 查询即可:
message.orders:>30 AND message.version:>3.4