码迷,mamicode.com
首页 >  
搜索关键字:log_format    ( 146个结果
Linux(九)nginx进阶操作及启动django项目
## nginx的日志```SHELL #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_u ...
分类:系统相关   时间:2021-05-24 04:12:29    阅读次数:0
11-LOG/01.py /
import logging LOG_FORMAT = "%(asctime)s %(levelname)s++++++%(message)s" logging.basicConfig(filename="tulingxueyuan.log", level=logging.DEBUG, format ...
分类:其他好文   时间:2021-04-01 13:06:35    阅读次数:0
通过filebeat的modules搜集nginx日志
前提安装好ES和Kibana NGINX日志格式如下 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http ...
分类:其他好文   时间:2020-07-10 14:57:44    阅读次数:123
debug技巧
print assert #优雅点,效果同print log日志:最强大 https://www.cnblogs.com/yyds/p/6901864.html import logging #允许指定记录信息的级别,有debug,info,warning,error等几个级别 LOG_FORMAT ...
分类:其他好文   时间:2020-06-25 19:21:49    阅读次数:57
linux环境下nginx + tomcat 负载均衡
修改nginx 的配置文件/etc/nginx/nginx.conf http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_ref ...
分类:系统相关   时间:2020-06-18 21:31:42    阅读次数:81
gitlab代码统计
gitlab代码统计 git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --since ==2018–03-01 ...
分类:其他好文   时间:2020-06-16 18:21:45    阅读次数:298
nginx日志格式化json字串
log_format json '{"@timestamp":"$time_iso8601",' '"host":"$server_addr",' '"clientip":"$remote_addr",' '"size":$body_bytes_sent,' '"responsetime":$req ...
分类:Web程序   时间:2020-06-14 20:40:04    阅读次数:69
对nginx反向代理日志json格式化
反向代理日志json化 步骤 使用ansible用户登录反向代理服务器 cd /etc/nginx/ 修改配置文件nginx.conf sudo vi nginx.conf 将 log_format main '$remote_addr - $remote_user [$time_local] "$ ...
分类:Web程序   时间:2020-06-12 00:31:34    阅读次数:120
scrapy
使用 xpath 选择网页所使用的标签 request传递数据 html response formrequest 使用 登录界面 内容存储为json lines 文件 setting 文件设置实现 保存在json 文件中 LOG_FORMAT 日志的格式 LOG_DATEDORMAT 日志日期的格 ...
分类:其他好文   时间:2020-06-11 16:09:43    阅读次数:59
Nginx系列(十一)——通过日志进行故障排查
Debugging and Troubleshooting with Access Logs, Error Logs, and Request Tracing故障排查 Configuring Access Logs请求日志配置http { log_format geoproxy #日志格式命名为ge ...
分类:其他好文   时间:2020-05-24 23:49:56    阅读次数:75
146条   1 2 3 4 ... 15 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!