设置 kibana 问题:Warning No default index pattern

clipboard.png

如图,初次启动kibana,打开网页后显示

Warning No default index pattern. You must select or create one to continue.

已经启动了elasticsearch和logstash, logstash.conf设置如下:

input {
  log4j {
    mode => "server"
    host => "127.0.0.1"
    port => 4567
    type => "log4j"
  }
  #stdin { } console input 
}
filter {
  #Only matched data are send to output.
}

output {  
  #stdout {} console output
  elasticsearch {
    action => "index"          #The operation on ES
    hosts  => "localhost:9200" #ElasticSearch host, can be array.
    index  => "applog2"         #The index to write data to.
  }
}

这个问题如何解决?谢谢!

阅读 24.6k
1 个回答

我是这么解决的:
1、在“Index name or pattern”项下,填入一个elasticsearch的索引名,也即是Logstash配置文件中output项下的index对应的名称;在你这里应该是将“logstash-*”改成“applog2”;
2、在“Time-field name”,选用默认的配置:“@timestamp”
3、点击“create”即可;

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进