首页
学习
活动
专区
圈层
工具
发布

Logstash Plugins

前言

Logstash 有一套灵活的插件机制,用来方便地扩展 Logstash 的能力和特性

由于 Logstash 是使用ruby写的,所以它的插件其实就是各种gem

Logstash has a rich collection of input, filter, codec and output plugins. Plugins are available as self-contained packages called gems and hosted on RubyGems.org. The plugin manager accesed via bin/plugin script is used to manage the lifecycle of plugins in your Logstash deployment. You can install, uninstall and upgrade plugins using these Command Line Interface (CLI) described below.

下面分享一下 Logstash Plugins 的基础使用方法

Tip: 当前的最新版本为 Logstash 2.1.1


概要


plugin命令

获取帮助

代码语言:javascript
复制
[root@h102 ~]# /opt/logstash/bin/plugin --help
Usage:
    bin/plugin [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
    SUBCOMMAND                    subcommand
    [ARG] ...                     subcommand arguments

Subcommands:
    install                       Install a plugin
    uninstall                     Uninstall a plugin
    update                        Update a plugin
    pack                          Package currently installed plugins
    unpack                        Unpack packaged plugins
    list                          List all installed plugins

Options:
    -h, --help                    print help
[root@h102 ~]# /opt/logstash/bin/plugin list --help
Usage:
    bin/plugin list [OPTIONS] [PLUGIN]

Parameters:
    [PLUGIN]                      Part of plugin name to search for, leave empty for all plugins

Options:
    --installed                   List only explicitly installed plugins using bin/plugin install ... (default: false)
    --verbose                     Also show plugin version number (default: false)
    --group NAME                  Filter plugins per group: input, output, filter or codec
    -h, --help                    print help
[root@h102 ~]# 
下一篇
举报
领券