elk kibana search geth ethereum
https://blog.csdn.net/qq_38486203/article/details/80817037
Search minedNumber
GET /filebeat-6.*-geth*/_search?q=geth_ip:xxx.xxx.xxx.xxx
{
"_source": ["name", "minedNumber", "gethdate"],
"sort": [
{
"gethdate": {
"order": "desc"
}
}
],
"from": 1,
"size": 1
}
Get minedNumber
curl -XGET "http://xxx.xxx.xxx.xxx:9200/filebeat-6.*-geth*/_search?q=geth_ip:xxx.xxx.xxx.xxx" -H 'Content-Type: application/json' -d'
{
"_source": ["name", "minedNumber", "gethdate"],
"sort": [
{
"gethdate": {
"order": "desc"
}
}
],
"from": 1,
"size": 1
}' | jq ".hits.hits[]._source.minedNumber"