input { redis { host => "10.10.45.200" data_type => "list" key => "elk_frontend_access:redis" port =>"5379" } } output { if [type] == "www1_access"{ elasticsearch { hosts => "10.10.45.200:8201" index => "logstash-www1-frontend-%{+YYYY.MM.dd}" } } if [type] == "flight1_access"{ elasticsearch { hosts => "10.10.45.200:8201" index => "logstash-flight1-frontend-%{+YYYY.MM.dd}" } } if [type] == "www_access"{ elasticsearch { hosts => "10.10.45.200:8201" index => "logstash-www-frontend-%{+YYYY.MM.dd}" } } if [type] == "m_access"{ elasticsearch { hosts => "10.10.45.200:8201" index => "logstash-m-frontend-%{+YYYY.MM.dd}" } } if [type] == "ro_access"{ elasticsearch { hosts => "10.10.45.200:8201" index => "logstash-ro-frontend-%{+YYYY.MM.dd}" } } }
logstash server 配置文件
原创ConfusedSnail 博主文章分类:ELK ©著作权
©著作权归作者所有:来自51CTO博客作者ConfusedSnail的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章