webiks / kibana-api Goto Github PK
View Code? Open in Web Editor NEWKibana-API is an extension to Kibana that lets you tap in to the dashboard management board from your app and change the visualizations dynamically
License: Apache License 2.0
Kibana-API is an extension to Kibana that lets you tap in to the dashboard management board from your app and change the visualizations dynamically
License: Apache License 2.0
In chrome version 62.0.3202.62 the gif not working
Hello,
Thank you guys for such an awesome plugin.
I am already using it with elastic v6.1 and was just wondering if the same version of this plugin is compatible with elastic v6.3? and if not what are your plans to release that (for v6.3)?
We use Kibana 6.2 and we want to upgrade to 6.7
I'd install Kibana 6.7.1 on my computer to try it, but I can't install the kbn_api.
I download the 6.X version and this is the error i got:
Maybe you have any solutions?
When install packages, get the next error:
"Npm warn no repository field".
To fix that simple add the next lines to the package. json file:
"repository": { "type": "git", "url": "git://github.com/username/repository.git" }
Hi, thanks for the API plug-in.
It is extremely effective way to visualize data source :)
Change the embedded(iframe) dashboard based on parameterized date(From, To)
I think new API would be helpful which can apply date range to embedded dashboard and refresh with API.
We put some embedded dashboard and visualization. And we want to adjust period range which is attached on our UI date range controller. And after setting is done, we want to let embedded kibana object display data based on the modified date range.
i.e.) ConfigureVisualizationByDate(from date, to date)
Hello, i just want to ask if is there any ongoing improvements to support kibana 6.4?
can it support kibana 7.0?
It is hard to understand what a method does.
accept
and not get
.it
is a bit lacking. For instance: it('should not call callElastic',...
- what does that mean? Should not call callElastic
when? Ever? Moreover, should call beforeCallElastic
appears twice. If they are the same, they should be combined. If they are not, they should be described better. This goes for the rest of the tests file.beforeCallElastic
test - doesn't seem to get the main biz logic of the method. The method does something inside the forEach
. We do not expect to get an array of a certain length from the method. We expect to get an array of certain objects from the method.spies
(or stubs
) remove the stub
from the description: it('should call getWellFormVisStateStub') should be it('should call getWellFormVisState()'
.getWellFormVisState
tests - you create an it
for every case, which is quite confusing. Eventually, you have 4 cases that can be handled by a method that accepts the the visState
, the path and the value. It then parses the path to set the value. This way, you are not only clearer, but also cover more cases with your test.Hi,
I'm using Kibana 6.5.4 and installed the plugin according to the instructions. Then I wanted to add a visualisation and copied and pasted your code into my js file. But in my web app the Kibana dashboard continues saying "This dashboard is empty. Let’s fill it up!".
Do you have any ideas what I might have done wrong?
Thanks!
Add the option to create multiple visualisations, simple by load json file, instead of create visualisation one by one
Hi, thanks for the plugin. I've tried to fork it and just change package.json so it can work with 6.0.1 but I'm getting the error:
Plugin installation was unsuccessful due to error "No kibana plugins found in archive"
What I'm doing wrong?
https://github.com/vladan-me/kibana-API/releases
Maybe you can release it in the meanwhile.
Thanks
I am having a difficult time getting this workingin our Angular4 webapp. My markup:
<div class="mdc-layout-grid">
<div class="mdc-layout-grid__inner">
<div class="mdc-layout-grid__cell mdc-layout-grid__cell--span-10-desktop mdc-layout-grid__cell--span-6-tablet tabs">
<iframe id="test1" src="http://localhost:5601/app/kibana#/dashboard/AV813bSSz9YDXQ5d_VDH?embed=true&_g=()" height="600" width="800"></iframe>
<div class="mdc-layout-grid__cell mdc-layout-grid__cell--span-2">
<h4 translate>smart-advisors-recommendations</h4>
</div>
</div>
</div>
and my typsecript that is being run:
ngOnInit() {
const iframe= document.getElementById('test1');
//Set visualiztion ID
let visPartial = {id: "bankAge"};
//Set isFullState to false meaning: the programmer pass minimal defenetion attributes
visPartial["isFullState"] = false;
//Set the elasticsearch index where the data store
visPartial["visIndex"] = "bank";
//Set minimal attributes of the visualization, in this example, create pie visualization on the field age
visPartial["visState"] = {visType: 'pie', field: 'age'};
visPartial["visDashboardDefenetion"] = {
col: 1,
id: "age",
panelIndex: 9,
row: 1,
size_x: 3,
size_y: 3,
type: "visualization"
};
//Replace visualization with id=memory with the new visualization
//visPartial["prevoiusVisId"] = "test1";
var iWindow = (<HTMLIFrameElement>iframe).contentWindow;
console.log(iWindow);
iWindow.postMessage({actionType: "setVisualization", visDefenetion: [visPartial]}, '*');
I am running elastic search and Kibana 5.6.3. Any insights?
Hi.
When I turn on the security in kibana 6.4, for some reason, the Kibana-API doesn't work properly.
Do you know why?
Thanks!
"setDashboardTime" was the last "case" inside switch statement. When you added "setRefreshInterval" after it you forgot to put "break" statement and execution flow continues to "setRefreshInterval" and refresh interval affected.
Another issue that reproduces itself about 50% of the time: refresh interval does not appear in globalState when you build URL for Kibana and therefore it being reset to 0.
Just wondering if there is a version of the plugin that will work with Kibana 5.6.4. Currently porting a project to a new 6.5 project and was hoping to use this plugin to export the index pattern.
Add delete visualisation feature
Add the ability to create timelione visualisation dynamically
Add the option to create data table visualisation in partial state mode
It would be great if you add one more feature to your plugin: ability to externally control refresh interval in the Kibana.
We use Kibana 6.3.2 ;-)
Thank you in advance.
Add the ability to create index-pattern dynamiclly in the user application
If you added a filter (e.g. addSearchChip) to a visualisation, does this affect all users embedding the visualisation or just for the current session?
I want to have embed dashboard on my website that will change dynamically to show data only for the logged in user that is map with a elasticsearch field document like user_id.
But using this plugin looks like any can open browser tools and modify javascript method to change filter to * and view all data from all users.
Any method to avoid this?
Please add possibility to set a default filter for a dashboard when visualization is created.
(I wont create a visualization from filtered data)
I am trying to install this API for the kibana ver 5.5.1 but am getting error of version problem. It is expecting 5.5.0.
Is there any alternative to fix the issue
/data/work/elastic/kibana-5.1.1/bin$ ./kibana
log [06:00:03.111] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
log [06:00:03.153] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [06:00:03.178] [fatal] TypeError: server.plugins.elasticsearch.getCluster is not a function
at exports.default (/data/work/elastic/kibana-5.1.1/plugins/kibana_api/server/routes.js:8:59)
at ScopedPlugin.init [as externalInit] (/data/work/elastic/kibana-5.1.1/plugins/kibana_api/index.js:32:13)
at ScopedPlugin.tryCatcher (/data/work/elastic/kibana-5.1.1/node_modules/bluebird/js/main/util.js:26:23)
at Promise.attempt.Promise.try (/data/work/elastic/kibana-5.1.1/node_modules/bluebird/js/main/method.js:30:24)
at /data/work/elastic/kibana-5.1.1/src/server/plugins/plugin.js:160:44
at undefined.next (native)
at step (/data/work/elastic/kibana-5.1.1/src/server/plugins/plugin.js:11:273)
at process._tickCallback (internal/process/next_tick.js:103:7)
FATAL TypeError: server.plugins.elasticsearch.getCluster is not a function
at exports.default (/data/work/elastic/kibana-5.1.1/plugins/kibana_api/server/routes.js:8:59)
at ScopedPlugin.init [as externalInit] (/data/work/elastic/kibana-5.1.1/plugins/kibana_api/index.js:32:13)
at ScopedPlugin.tryCatcher (/data/work/elastic/kibana-5.1.1/node_modules/bluebird/js/main/util.js:26:23)
at Promise.attempt.Promise.try (/data/work/elastic/kibana-5.1.1/node_modules/bluebird/js/main/method.js:30:24)
at /data/work/elastic/kibana-5.1.1/src/server/plugins/plugin.js:160:44
at undefined.next (native)
at step (/data/work/elastic/kibana-5.1.1/src/server/plugins/plugin.js:11:273)
at process._tickCallback (internal/process/next_tick.js:103:7)
I can not install plugin.
~# /usr/share/kibana/bin/kibana-plugin install https://github.com/Webiks/kibana-API/releases/download/v6.4.2_0.6.0/kibana_api-0.6.0.zip
Attempting to transfer from https://github.com/Webiks/kibana-API/releases/download/v6.4.2_0.6.0/kibana_api-0.6.0.zip
Transferring 1564420 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation was unsuccessful due to error "Command failed: /usr/share/kibana/node/bin/node /usr/share/kibana/src/cli --env.name=production --optimize.useBundleCache=false --server.autoListen=false --plugins.initialize=false --uiSettings.enabled=false
(node:13061) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
{"type":"log","@timestamp":"2018-10-26T13:52:32Z","tags":["warning","config","deprecation"],"pid":13061,"message":"uiSettings.enabled is deprecated and is no longer used"}
{"type":"log","@timestamp":"2018-10-26T13:52:41Z","tags":["info","optimize"],"pid":13061,"message":"Optimizing and caching bundles for ml, stateSessionStorageRedirect, status_page, timelion, graph, monitoring, login, logout, dashboardViewer, apm, kibana_api and kibana. This may take a few minutes"}
"
And I can't remove it by bin/kibana-plugin remove
after failed installation:
~# /usr/share/kibana/bin/kibana-plugin install https://github.com/Webiks/kibana-API/releases/download/v6.4.2_0.6.0/kibana_api-0.6.0.zip
Found previous install attempt. Deleting...
Attempting to transfer from https://github.com/Webiks/kibana-API/releases/download/v6.4.2_0.6.0/kibana_api-0.6.0.zip
Transferring 1564420 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Plugin kibana_api already exists, please remove before installing a new version
Now i need to reinstall Kibana or manual removing of broken plugin installiation.
Info:
Description: Ubuntu 18.04.1 LTS
~# dpkg -s kibana
Package: kibana
Status: install ok installed
Priority: optional
Section: default
Installed-Size: 432754
Maintainer: Kibana Team <[email protected]>
Architecture: amd64
Version: 6.4.2
Conflicts: kibana-oss
Conffiles:
/etc/default/kibana bcce7272035f46da444492dd983f0522
/etc/init.d/kibana fe5ea9236312a48ac0a55777937040dd
/etc/kibana/kibana.yml e0be5e3da5403f48abb95ecbfba68a00
/etc/systemd/system/kibana.service 1732c2e2d62990933c030bdecf9813a0
Description: Explore and visualize your Elasticsearch data
License: Elastic-License
Vendor: Elasticsearch, Inc.
Homepage: https://www.elastic.co
~# cat /usr/share/kibana/package.json | grep "version"
"version": "6.4.2",
Hi team,
I want to use API in my script so that I can create visualization dynamically. I have already created a script by which i am able to create index pattern dynamically now I want to use that index pattern further so that i can create visualization dynamically.
So I have apache-access* index pattern(created through script) now how i can use this index pattern to create visualization dynamically?
Please help.
Also I installed the Kibana API plugin then restart the service but still i m not able to see Kibana API in Kibana tool??
Add search feature to the iframe embedded dashboard
It seems the documentation isn't finished.
A few tips here:
JSON
config examples or an explanation regarding what each line does. It would make it clearer to users.// import or require the plugin
import * as myPlugin from ... (or require);
// Use the plugin
// set some x that would set the ___ as a ___ (for instance, would set a pie chart with certain params)
const x = {};
// initiate the call
myPlugin.someMethod(x);
...
So a user would be able to follow step by step on how to use the plugin.
Hi
I was trying to install the latest version of the plugin on Kibana 6.8.0.
This is the error I get the second I login to Kibana (with and without the security enable)
and than the Kibana crushed:
C:\Users\gilm\Desktop\ek 6.8.0\kibana-6.8.0-windows-x86_64\plugins\kibana_api\server\routes.js:27
reply(obj);
^
TypeError: reply is not a function
at C:/Users/gilm/Desktop/ek 6.8.0/kibana-6.8.0-windows-x86_64/plugins/kibana_api/server/routes.js:34:17
at C:\Users\gilm\Desktop\ek 6.8.0\kibana-6.8.0-windows-x86_64\plugins\kibana_api\node_modules\jsonfile\index.js:46:5
at C:\Users\gilm\Desktop\ek 6.8.0\kibana-6.8.0-windows-x86_64\plugins\kibana_api\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
There's something to do about it?
Thanks!
could you add some gif
In kibana version 5.3.0, the dashboard URL header is a little different:
https://localhost:5601/xpu/app/kibana#/dashboard/create?embed=true
instead of:
https://localhost:5601/xpu/app/kibana#/dashboard?embed=true
(even if you saved the dashboard)
And hence the plugin don't work in this specific version
Npm package for node js
i would like to make a button than makes certain visualizations disappear in a dashboard and reappear when clicked again. is this possible with the api plugin ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.