[Kibana > Timelion] Timelion.json is not working
2017-06-10 01:31
381 查看
Just a mark to investigate the reason configuration file of Timelion plugin is not working. It is maybe a designed feature. :)
The significant change is
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
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
email: nisxiya@yeah.net
wechat: nisxiya
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: @timestampto
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
相关文章推荐
- 解决图片对象不能json序列化问题:<ImageFieldFile: image/background_IXSZChD.jpg> is not JSON serializable
- Menu - StaticSelectedStyle is not working properly
- What is JSON:初识JSON <转>
- classical is something not fade,but grow more precious with time pass by,so is dream
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- _IsPtrType -- STL type checking on compile-time -- Substitution Failure Is Not An Error (SFINAE)
- IDLE_TIME DOES NOT WORK TO SPECIFY WHEN A SESSION IS AUTOMATICALLY SNIPPED
- windows下安装datastage cline的fixpack2报错"The Microsoft Windows Scripting Engine is not working correctly."
- Rails 3 to_s(:db) when database time is NOT UTC
- PHP Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. 解决方法:
- SVN "Not is a working copy directory”故障的解决方法
- Working copy not locked;this is probably a bug,please report
- The MagicAjax HttpModule is not included in web.config. Add [<httpModules><add name="MagicAjax" type="MagicAjax.MagicAja
- window.print(); is not working in Safari Browser Windows XP
- SQL server 2005 创建数据库失败提示“Collation <服务器默认值> is not valid”解决方法
- Why do I get "Value computed is not used" when working with pointers?
- MOSS2007-404 error>"This webpage is not available"
- Myeclipse--SVN Path is not a working copy directory
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone