摘要:
Python收集Json格式日志的状态码 Python2 #!/usr/bin/env python #coding:utf-8 status_200= [] status_403= [] with open("/apps/nginx-1.18.0/logs/access_json.log") as 阅读全文
摘要:
Nginx自定义Json日志格式 为配合ELK,EFK使用,需要将web日志格式设置为Json格式。 #vim /apps/nginx-1.18.0/conf/nginx.conf #添加如下json格式 log_format access_json '{"@timestamp":"$time_is 阅读全文
摘要:
nginx: [emerg] unknown directive "echo" 问题现象: #nginx -t nginx: [emerg] unknown directive "echo" in /apps/nginx-1.18.0/conf.d/p.conf:24 nginx: configur 阅读全文