nreese / kibana-time-plugin

Kibana visualization that provides controls for setting and animating time ranges.
Apache License 2.0
125 stars 55 forks source link

Incompatible with kibana 7.3.0 - fix? #61

Open Gwennyn opened 5 years ago

Gwennyn commented 5 years ago

I'd really like to use this plugin, but it seems to be incompatible with Kibana 7.3.0? Will there be a fix (soon)?

nreese commented 5 years ago

Nothing is in the works but pull requests are appreciated.

GustavoBellini commented 5 years ago

Hello,

I was even able to install in version 7.3.2, but on first boot appeared the following message in kibana:

@babel/polyfill is deprecated. Please, use required parts of core-js

I tried to find this library (@ babel / polyfill) with a grep -ri but couldn't find any file that uses it.

The only mistake I noticed was that the shortcuts to change the layout disappeared.

ShellySingh1 commented 5 years ago

Hi,

I am looking forward to using it with 7.4. I am a Kibana user - not a developer and unfortunately wont be able to edit it myself. Any help?

Thanks.

shidokamo commented 5 years ago

Hi,

I had exactly same issue mentioned by @GustavoBellini

The error message was below which should be related to Babel 7.4 updates.

@babel/polyfill is deprecated. Please, use required parts of core-js

I think this is not a plugin issue. In my environment, Node version mismatch between Kibana and Bower was causing this issue. I changed installation process as below and now the plugin is working on my Kibana 7.3.2 environment.

Below step is using Node version manager called 'n'. This tool is pretty useful but it directly controls your system directory. I recommend you to understand how it works. (Installation path etc.)

 # Kibana installation dir for Ubuntu/Debian
 KIBANA_HOME=/usr/share/kibana

 # Check Node version for your Kibana
 # In my case >>  "node": "10.15.2"
 cat $KIBANA_HOME/package.json | grep node

 # Install Node.js with package manager
 curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
 sudo apt-get install -y nodejs

 # Check installed Node version
 # In my case >> v10.16.3 (!! VERSION MISMATCH !!)
 node --version

 # Install Node version manager
 sudo npm install -g n

 # Install Node version matching with Kibana
 sudo n install 10.15.2

 # Uninstall Ubuntu/Debian Node. 'node_modules' won't be removed so you can still use 'n'.
 sudo apt purge -y nodejs

 # Check Node version. It should be 'v10.15.2'
 which node
 which npm 
 node --version

 # Install bower for Kibana time-plugin
 sudo npm install -g bower

 # Install plugin
 cd $KIBANA_HOME/plugins
 sudo git clone http://github.com/nreese/kibana-time-plugin.git
 cd kibana-time-plugin
 sudo git checkout master

 # Update plugin package.json to specify your Kibana version.
 sudo sed -i -e 's/"version".*/"version" : "7.3.2"/' package.json

 # --allow-root was required to run bower as root.
 sudo bower install --allow-root

 # Restart Kibana
 sudo systemctl restart kibana