input { file { path => "/home/nflow/logs/nisp-service/nisp-service.log" type => "nisp-servvice" start_position => "end" stat_interval => "1" type => 'nisp-servvice' tags => ["nisp-servvice"] codec => multiline { pattern => "^\d" negate => "true" what => "previous" } } } output { if [type] == "nisp-servvice" { elasticsearch { hosts => ["172.16.249.3:9400"] index => "nisp-servvice-log-%{+YYYY.MM.dd}" codec => "json" }} }
logstash日志收集
原创
©著作权归作者所有:来自51CTO博客作者小小三郎1的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:查看java进程启动的时间
下一篇:gitlab忘记密码
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章