Logstash 用 {} 来定义区域

input {

   stdin {}

   syslog {}

}

数据类型

  • bool

debug => true

  • string

host => "hostname"

  • number

port => 514

  • array

match => ["datetime", "UNIX", "666"]

  • hash

options => {

key1 => "value1",

key2 => "value2"

}

字段引用

[geoip][location][0]

条件判断

  • equality, etc: ==, !=, <, >, <=, >=

  • regexp: =~, !~

  • inclusion: in, not in

  • boolean: and, or, nand, xor

  • unary: !()

命令行参数

-e " "   执行配置内容并启动

--config 或 -f   指定配置文件或目录运行

--configtest 或 -t   检查配置语法是否正确

--log 或 -l  运行日志路径

--filterworkers 或 -w  -w 5 5个线程执行

--pluginpath 或 -P 加载插件路径

--verbose  输出一定的调试日志

--debug  输出更多调试日志