Kibana User Guide [4.2] » Kibana Plugins

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:

可以使用-i代替--install

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.

因为官方发布者是elasticsearch,插件管理工具可以从下载download.elastic.co

Installing Plugins from Github

从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:

当在download.elastic.co找不到特殊的插件时,插件管理工具就解析元素成一个Github用户名。

bin/kibana plugin --install github-user/sample-plugin
Installing sample-plugin
Attempting to extract from https://download.elastic.co/github-user/sample-plugin/sample-plugin-latest.tar.gz
Attempting to extract from https://github.com/github-user/sample-plugin/archive/master.tar.gz
Downloading <some number> bytes....................
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete

Installing Plugins from an Arbitrary URL

从任意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:

你可以使用-u--url选项来来确定一个URL。

bin/kibana plugin -i sample-plugin -u https://some.sample.url/directory
Installing sample-plugin
Attempting to extract from https://some.sample.url/directory
Downloading <some number> bytes....................
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:

使用-d--plugin-dir来确定路径。

bin/kibana plugin -i elasticsearch/sample-plugin/latest -d <path/to/directory>
Installing sample-plugin
Attempting to extract from https://download.elastic.co/elasticsearch/sample-plugin/sample-plugin-latest.tar.gz
Downloading <some number> bytes....................
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete
Note

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:

使用--remove-r 选项。

bin/kibana plugin --remove marvel

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

你也可以手动删除路径,通过删除installedPlugins目录下的子目录。

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.

一般情况下,插件管理器会为你反馈你要求它操作的结果。你通过--quiet--silent选项可以控制反馈的级别。使用--quiet选项来控制没有错误返回。使用 --silent来压制所有返回。

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:

一般情况下,管理器请求不会有超时。可以使用--timeout选项来控制时间。

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
插件和定制的Kibana配置

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.

使用-c--config 选项来确定启动Kibana的配置文件位置。一般情况下,Kibana使用配置文件config/kibana.yml。当你更改已安装的插件时,需要使用bin/kibana plugin命令重启Kibana服务。当你使用定制的配置文件时,你必须确定每次你使用bin/kibana plugin命令的路径。


备注:

材料来自elastic官网。

地址:

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
安装Kibana时出现"-bash4.2"的提示是因为在使用docker exec命令进入后台运行的docker容器时,引起了Shell环境变量的变化。在默认情况下,进入docker容器后,会使用容器内的默认Shell环境(在这种情况下是bash-4.2)。 如果你希望退出容器时能够使用原来的Shell环境,可以在使用docker exec命令时指定使用特定的Shell,例如使用/bin/bash命令进行进入: ``` docker exec -it node1 /bin/bash ``` 这将使你进入容器时使用的是/bin/bash环境,从而避免了出现-bash4.2的提示。 另外,对于其他可能导致该提示的情况,例如在添加普通用户时丢失了环境变量文件,可以通过从主默认文件夹/etc/skel/下重新拷贝一份配置信息到用户的家目录下来解决。你可以使用以下命令来拷贝配置信息文件: ``` cp /etc/skel/.bashrc /home/user/ cp /etc/skel/.bash_profile /home/user/ ``` 这将会将默认的.bashrc和.bash_profile文件拷贝到指定用户的家目录下,从而恢复环境变量的设置。 总结来说,当在安装Kibana时出现"-bash4.2"的提示时,是因为进入docker容器时使用了默认的Shell环境。你可以通过指定使用特定的Shell环境来解决这个问题,同时还可以检查并恢复可能丢失的环境变量文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [docker出现‘’bash-4.2$‘’的问题解决](https://blog.csdn.net/Gabriel576282253/article/details/106403920)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [使用docker安装ElasticSearch和kibana](https://blog.csdn.net/qq_45737419/article/details/119357667)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值