Display data from external REST API in Kibana

I want to display some data in Kibana but this data is not present in Elasticsearch or Kibana. I want to read this data from an external REST API, i would be happy if I can do this inside Kibana page or can I add a new page in Kibana to read the data from external REST API ?

Welcome to our community! :smiley:

The only way would be to create a custom plugin that does this. Otherwise Kibana only reads data from Elasticsearch.

Thank you :smiley:

I tried with generator-kibana-plugin, there's a node version mismatch since our kibana supports node 10.23.1 and running the command "yo kibana-plugin" for creating a custom plugin is throwing error.

The error is because Object.fromEntries supports node version above 12, but our node version is 10.23.1.

Here's the console output,

Now using node v10.23.1 (npm v6.14.10)
novell@worker-node:~/custom-kibana-plugin$ yo kibana-plugin
const fsSync = Object.fromEntries(Object.entries(fs).filter(([k, v]) =>
TypeError: Object.fromEntries is not a function
    at Object.<anonymous> (/home/novell/.nvm/versions/node/v10.23.1/lib/node_modules/yo/node_modules/npm-registry-fetch/node_modules/@npmcli/fs/lib/fs.js:6:23)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/novell/.nvm/versions/node/v10.23.1/lib/node_modules/yo/node_modules/npm-registry-fetch/node_modules/@npmcli/fs/lib/index.js:2:6)
    at Module._compile (internal/modules/cjs/loader.js:778:30)

And since kibana plugin and kibana should have the same node version, using latest node version throws incorrect node version error.

novell@worker-node:~/custom-kibana-plugin$ node --version
novell@worker-node:~/custom-kibana-plugin$ yo kibana-plugin
✖ Incorrect Node.js Version
     info Required version: 10.23.1
     info Current version: 16.14.2
     info See https://github.com/elastic/generator-kibana-plugin#getting-started

Can you please help me with this?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.