# Kibana User Guide [4.2] » Kibana Plugins

725人阅读 评论(0)

Kibana Plugins

Kibana插件

Add-on functionality for Kibana is implemented with plug-in modules. You can use the bin/kibana plugincommand to manage these modules. You can also install a plugin manually by moving the plugin file to theinstalledPlugins directory and unpacking the plugin files into a new directory.

Kibana的额外功能通过plug-in模块被执行。你可以使用bin/kibana plugin来操作这些模块。你也可以手动安装插件，通过把插件文件移动到installedPlugins目录，然后解压插件文件到一个新目录。

### Installing Plugins

Use the following command to install a plugin:

bin/kibana plugin --install <org>/<package>/<version>

You can also use -i instead of --install, as in the following example:

bin/kibana plugin -i elasticsearch/marvel/latest

Because the organization given is elasticsearch, the plugin management tool automatically downloads the plugin from download.elastic.co.

### Installing Plugins from Github

When the specified plugin is not found at download.elastic.co, the plugin management tool parses the element as a Github user name, as in the following example:

bin/kibana plugin --install github-user/sample-plugin
Installing sample-plugin
Attempting to extract from https://github.com/github-user/sample-plugin/archive/master.tar.gz
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete

### Installing Plugins from an Arbitrary URL

You can specify a URL to a plugin with the -u or --url options after the -i or --install option, as in the following example:

bin/kibana plugin -i sample-plugin -u https://some.sample.url/directory
Installing sample-plugin
Attempting to extract from https://some.sample.url/directory
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete

You can specify URLs that use the HTTP, HTTPS, or file protocols.

URL可以使用HTTP，HTTPs或者文件协议。

### Installing Plugins to an Arbitrary Directory

Use the -d or --plugin-dir option to specify a directory for plugins, as in the following example:

bin/kibana plugin -i elasticsearch/sample-plugin/latest -d <path/to/directory>
Installing sample-plugin
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete

This command creates the specified directory if it does not already exist.

### Removing Plugins

Use the --remove or -r option to remove a plugin, including any configuration information, as in the following example:

bin/kibana plugin --remove marvel

You can also remove a plugin manually by deleting the plugin’s subdirectory under the installedPluginsdirectory.

### Updating Plugins

To update a plugin, remove the current version and reinstall the plugin.

### Configuring the Plugin Manager

By default, the plugin manager provides you with feedback on the status of the activity you’ve asked the plugin manager to perform. You can control the level of feedback with the --quiet and --silent options. Use the --quiet option to suppress all non-error output. Use the --silent option to suppress all output.

By default, plugin manager requests do not time out. Use the --timeout option, followed by a time, to change this behavior, as in the following examples:

Waits for 30 seconds before failing.

bin/kibana plugin --install username/sample-plugin --timeout 30s

Waits for 1 minute before failing.

bin/kibana plugin --install username/sample-plugin --timeout 1m

#### Plugins and Custom Kibana Configurations

Use the -c or --config options to specify the path to the configuration file used to start Kibana. By default, Kibana uses the configuration file config/kibana.yml. When you change your installed plugins, thebin/kibana plugin command restarts the Kibana server. When you are using a customized configuration file, you must specify the path to that configuration file each time you use the bin/kibana plugincommand.

https://www.elastic.co/guide/en/kibana/current/kibana-plugins.html

0
0

* 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场
个人资料
• 访问：588218次
• 积分：8004
• 等级：
• 排名：第2922名
• 原创：115篇
• 转载：420篇
• 译文：37篇
• 评论：34条
文章分类