example 1:
input {
file {
path => "/var/log/messages"
type => "system"
start_position => "beginning"
}
}
output {
stdout {
codec => rubydebug
}
}
example 2:
input {
stdin {}
}
output {
stdout {
codec => rubydebug
}
}
example 3(此为collectd的配置, 等会就是这个):
input {
udp {
port => 25826
type => "collectd"
codec => collectd {}
}
}
output {
stdout {
codec => rubydebug
}
}
手机扫一扫
移动阅读更方便
你可能感兴趣的文章