标签:line hint The emctl arc ash mct val value
input {
file {
path => ["/var/log/httpd/access_log"]
type => "httpd_log"
start_position => ["beginning"]
}
}
output {
redis {
host => ["node2"]
key => "logstash-httpd"
data_type => "list"
}
}
+ logstash -f /etc/logstash/httpd.conf
input {
redis {
data_type => "list"
key => "logstash-httpd"
host => "node2" # NOTE!! it‘s string not array
}
}
output {
elasticsearch {
hosts => ["node4:9200"]
index => "logstash-%{+YYYY.MM.dd}"
}
}
标签:line hint The emctl arc ash mct val value
原文地址:https://www.cnblogs.com/megachen/p/9665468.html