摘要: filebeat配置: filebeat.inputs: # Each - is an input. Most options can be set at the input level, so # you can use different inputs for various configura 阅读全文
posted @ 2022-10-07 22:18 陈苏乾 阅读(460) 评论(0) 推荐(0) 编辑
摘要: nginx配置: log_format main '$remote_addr - $remote_user [$year-$month-$day $hour:$minutes:$seconds] "$request" ' '$status $body_bytes_sent "$http_refere 阅读全文
posted @ 2022-10-07 20:32 陈苏乾 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 在每个server中加入: if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})") { set $year $1; set $month $2; set $day $3; set $hour $4; set $m 阅读全文
posted @ 2022-10-07 10:34 陈苏乾 阅读(490) 评论(0) 推荐(0) 编辑