虚拟化容器,大数据,DBA,中间件,监控。

ELK 配置你的logstash

20 12月
作者:admin|分类:大数据

Structure of a Config File


A Logstash config file has a separate section for each type of plugin you want to add to the event processing pipeline. For example:

# This is a comment. You should use comments to describe
# parts of your configuration.
input {
  ...
}

filter {
  ...
}

output {
  ...
}

Each section contains the configuration options for one or more plugins. If you specify multiple filters, they are applied in the order of their appearance in the configuration file.

 

Plugin Configuration


The configuration of a plugin consists of the plugin name followed by a block of settings for that plugin. For example, this input section configures two file inputs:

input {
  file {
    path => "/var/log/messages"
    type => "syslog"
  }

  file {
    path => "/var/log/apache/access.log"
    type => "apache"
  }
}

In this example, two settings are configured for each of the file inputs: path and type.

The settings you can configure vary according to the plugin type. For information about each plugin, see Input PluginsOutput PluginsFilter Plugins, and Codec Plugins.

浏览441 评论0
返回
目录
返回
首页
ELK 吃透Elasticsearch 堆内存 ELK 过滤插件grok对nginx日志格式化