ELK 搭建11

2022-02-11 16:42:26 浏览数 (1)

貌似结果和前一种情况差不多,但此时ES里已经有数据了

代码语言:javascript复制
[root@h102 ~]# curl 'http://localhost:9200/_search?pretty'
{
  "took" : 35,
  "timed_out" : false,
  "_shards" : {
    "total" : 6,
    "successful" : 6,
    "failed" : 0
  },
  "hits" : {
    "total" : 4,
    "max_score" : 1.0,
    "hits" : [ {
      "_index" : ".kibana",
      "_type" : "config",
      "_id" : "4.3.1",
      "_score" : 1.0,
      "_source":{"buildNum":9517}
    }, {
      "_index" : "logstash-2015.12.22",
      "_type" : "logs",
      "_id" : "AVHJ5yfWrEoC64-rdPBW",
      "_score" : 1.0,
      "_source":{"message":"getting started with logstash","@version":"1","@timestamp":"2015-12-22T13:35:47.999Z","host":"h102.temp"}
    }, {
      "_index" : "logstash-2015.12.22",
      "_type" : "logs",
      "_id" : "AVHJ51ORrEoC64-rdPBX",
      "_score" : 1.0,
      "_source":{"message":"hello example","@version":"1","@timestamp":"2015-12-22T13:35:58.383Z","host":"h102.temp"}
    }, {
      "_index" : "logstash-2015.12.22",
      "_type" : "logs",
      "_id" : "AVHJ5vLKrEoC64-rdPBV",
      "_score" : 1.0,
      "_source":{"message":"simple test","@version":"1","@timestamp":"2015-12-22T13:35:33.252Z","host":"h102.temp"}
    } ]
  }
}
[root@h102 ~]# 
es

0 人点赞