配置链接ElasticSearch数据源
If Kibana and Elasticsearch are on the same host, and you’re using the default Elasticsearch port, then you’re all set. Kibana is configured to use that setup by default!
If not, you need to edit config.js and set the elasticsearch parameter with the URL (including port, probably 9200) of your Elasticsearch server. The host part should be the entire, fully qualified domain name, or IP, not localhost.
配置kibana只展示哪些索引
- 点击右上角的 configure dashboard,点击Index,进入Index Settings。
- timestamping = none, Default Index = log-*
- timestamping = hour/day/week/month/year, Default Index = [log-]YYYY.MM.DD, [log-]*-YYYY.MM.DD
TIPS
Index Settings
Time stamped indices use your selected time range to create a list of indices that match a specified timestamp pattern. This can be very efficient for some data sets (eg, logs) For example, to match the default logstash index pattern you might use [logstash-]YYYY.MM.DD. The [] in “[logstash-]” are important as they instruct Kibana not to treat those letters as a pattern. You may also specify multiple indices by seperating them with a comma(,). For example [web-]YYYY.MM.DD,[mail-]YYYY.MM.DD Please also note that indices should rollover at midnight UTC.
查询
界面配置
kibana的布局是基于 Row 和 Panel 的。
一个 Dashboard 包含 很多 Row,一个 Row包含多个 Panel。Panel也就是所谓的控件。Kibana内建如下控件:
- column
- goal
- histogram
- hits
- table
- terms
- text
- trends
- map
- bettermap
- sparkines
具体参见:panels。
保存和导入Dashboard
参考文档
- Kibana 中文指南 中文翻译+说明,推荐!
- http://www.elasticsearch.org/guide/en/kibana/current/index.html
- Kibana queries vs filters
http://ju.outofmemory.cn/entry/78030 http://storysky.blog.51cto.com/628458/1158707/ http://gotocon.com/dl/goto-berlin-2014/GOTO_Night/logstash-kibana-intro.pdf http://it.taocms.org/01/2507.htm
http://www.javacodegeeks.com/2013/08/simple-and-lightweight-pool-implementation.html
createTime: [2014-12-24 06:30:00 TO 2014-12-24 10:00:00]
本文由 arganzheng 创作,采用 CC BY 4.0 许可协议。在保留原文作者、署名以及完整原文链接(https://arganzheng.life/kibana.html)的前提下,欢迎各种形式的转载、翻译或商业引用。
COMMENTS
评论存放在 GitHub Discussions, 用 GitHub 账号登录即可发表,支持 Markdown。 想针对正文某句话说?选中那段文字,点浮出的「评论」即可划线评论;觉得哪里写错了,发表时勾上「同时提交 Issue」。 有人回复你时 GitHub 会按你的通知设置发邮件,不用守在这里。