码迷,mamicode.com
首页 >  
搜索关键字:log_format    ( 146个结果
使用haproxy做负载均衡时保持客户端真实的IP
haproxy里添加设置项optionforwardforoptionhttpclose这个你应用端的log_format格式获取要改啊,比如apache的:LogFormat"%{X-Forwarded-For}i%l%u%t\"%r\"%>s%b\"%{Referer}i\"\"%{User-Agent}i\""combined
分类:其他好文   时间:2015-04-17 11:47:01    阅读次数:139
Nginx 用log_format设置日志格式
1、配置文件#vim /usr/local/nginx/conf/nginx.conflog_format access ‘$remote_addr – $remote_user [$time_local] “$request” ‘‘$status $body_bytes_sent “$http_r...
分类:其他好文   时间:2015-04-07 19:32:34    阅读次数:111
linux之log_format
log_format是指存储日志的时候所采用的格式,可以在/usr/local/nginx/conf/nginx.conf的http字段中设置下面是一个典型的log_format设置log_format main '$remote_addr - $remote_user [$time_local.....
分类:系统相关   时间:2015-04-03 20:51:34    阅读次数:150
nginx日志配置
日志对于统计排错来说非常有利的。本文总结了nginx日志相关的配置如access_log、log_format、open_log_file_cache、log_not_found、log_subrequest、rewrite_log、error_log。nginx有一个非常灵活的日志记录模式。每个级...
分类:其他好文   时间:2015-03-16 14:21:19    阅读次数:195
Ngnix的日志管理和用定时任务完成日志切割
一、日志管理 先来看看ngnix的配置文件的server段 接下来我们解释一下默认格式的具体意思 #log_format main '$remote_addr(远程IP) - $remote_user(远程用户) [$time_local](访问时间) "$request"(请求方式...
分类:其他好文   时间:2015-03-04 00:51:34    阅读次数:237
Nginx阿里云客户端IP日志记录
log_format main 'realip:$http_x_forwarded_for slbip:$remote_addr-$remote_user [$time_local] "$request" ' '$status $body_bytes_s...
分类:其他好文   时间:2015-02-12 18:03:08    阅读次数:247
nginx 日志格式
1 http { 2 3 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 4 '$status $body_bytes_sent "$http_referer" ' 5 '"$http_user_ag.....
分类:其他好文   时间:2015-01-23 17:43:53    阅读次数:169
Nginx日志文件格式及切割日志文件
作为web服务器而言,日志是必不可少的也是需要经常查看的。此篇就来介绍下如何自定义Nginx中的日志格式以及使用crontab计划任务来做到每天切割一次日志文件从而做到方便管理。在Nginx中日志文件是由log_format这个指令来定义的,它的语法如下:log_formatnameformat ##name:指..
分类:其他好文   时间:2014-12-29 06:35:43    阅读次数:177
实战Nginx(2)-日志模块
nginx有一个非常灵活的日志记录模式。每个级别的配置可以有各自独立的访问日志。日志格式通过log_format命令来定义。ngx_http_log_module是用来定义请求日志格式的。一.日志记录配置详解1.access_log指令语法:access_logpath[format[buffer=size[flush=time]]]; access_logpath..
分类:其他好文   时间:2014-12-28 01:56:03    阅读次数:372
default配置
log_format main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http...
分类:其他好文   时间:2014-11-26 20:27:28    阅读次数:187
146条   上一页 1 ... 12 13 14 15 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!