[Kibana > Timelion] Timelion.json is not working
来源:互联网 发布:js改变color 编辑:程序博客网 时间:2024/05/21 10:02
Just a mark to investigate the reason configuration file of Timelion plugin is not working. It is maybe a designed feature. :)
Background
In Kibana 5.X, (specially Kibana 5.3.3 in my case), I have configured the timelion.json into the following:
{ "quandl": { "key": "someKeyHere" }, "es": { "timefield": "timestamp", "default_index": "qos*" }, "graphite": { "url": "http://devops-graphite.prod.hulu.com" }, "default_rows": 2, "default_columns": 2, "max_buckets": 2000, "target_buckets": 200}
The significant change is timefield: @timestamp
to timefield: timestamp
. This does not work since an ad hoc query in timelion still says the default timefield is @timestamp
.
Solution
Actually, after timelion is merged into kibana project, its default configuration comes from two sources:
- Kibana default UI Setting configuration: https://github.com/elastic/kibana/blob/5.3/src/ui/settings/defaults.js#L272
- Timelion configuration: https://github.com/elastic/kibana/blob/5.3/src/core_plugins/timelion/timelion.json
And the first configuration would override the seconds configuration. As we can check here: https://github.com/elastic/kibana/blob/5.3/src/core_plugins/timelion/server/routes/run.js#L23
const tlConfig = require('../handlers/lib/tl_config.js')({ server, request, settings: _.defaults(uiSettings, timelionDefaults) // Just in case they delete some setting.
With this being said, to modify the default setting for timelion, you are supposed to do modification in Kibana’s default UI setting.
If you persist to make your changes only in timelion.json
, then you might change the above snip to the following:
const tlConfig = require('../handlers/lib/tl_config.js')({ server, request, settings: _.defaults(timelionDefaults, uiSettings) // Prefer the settings in timelion.json.
Contact me
If you get any question, you are welcome to contact me via:
- email: nisxiya@yeah.net
- wechat: nisxiya
- [Kibana > Timelion] Timelion.json is not working
- Kibana Timelion Supports Percentiles
- [Kibana > Timelion] Divide multi-valued seriesList by another multi-valued seriesList
- kibana4中安装 timelion 插件与基本语法
- Why RequestContext is not working?
- devicePolicyManager.lockNow() is not working
- Zend_Db_Table::getDefaultAdapter is not working
- span margin is not working
- IE e.target.id is not working
- svn: 'codeswork' is not a working copy
- is not a working copy direct
- svn is not a working copy directory
- svn: warning: '.' is not a working copy
- Why is .innerText not working in Firefox?
- Spring AOP Interceptor transaction is not working
- ORDER BY clause is not working properly
- SVN Path is not a working copy
- SVN Path is not a working copy directory
- 088-C++
- HTML5存储
- Html+Css学习第四天
- 089-C++
- tensorflow学习笔记(五):TensorFlow变量共享和数据读取
- [Kibana > Timelion] Timelion.json is not working
- 090-C++
- 091-C++
- HDU 5113 Black And White(深搜+剪枝)
- AtCoder Tasks B インタラクティブ練習 (Interactive Sorting)
- 092-C++
- 093-C++
- 树结构
- 比较全面的Access SQL注入参考