![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
logstash
搞懂鸭
非典型程序员
展开
-
logstash发邮件
1、合并日志 php的错误日志中常常会出现这样的日志 [03-Jun-2013 13:15:29] PHP Fatal error: Uncaught exception 'Leb_Exception' in /data1/www/bbs.xman.com/htdocs/framework/xbox/ufo.php:68 Stack trace: #0 /data/www/bbs.xman.转载 2016-05-24 14:41:05 · 6315 阅读 · 2 评论 -
logstash-input-file 插件使用详解
前篇介绍过Logstash的使用,本篇继续深入,介绍下最常用的input插件——file。 这个插件可以从指定的目录或者文件读取内容,输入到管道处理,也算是logstash的核心插件了,大多数的使用场景都会用到这个插件,因此这里详细讲述下各个参数的含义与使用。 最小化的配置文件 在Logstash中可以在 input{} 里面添加file配置,默认的最小化配置如下:转载 2016-06-16 11:48:03 · 2713 阅读 · 0 评论 -
logstash,nginx日志,grok pattern调试
#Nginx日志格式定义 log_format combine '$remote_addr - $remote_user [$time_local] "$request" $http_host ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"转载 2016-06-16 14:59:26 · 3366 阅读 · 0 评论