* %a - Remote IP address                                                                 # 远程ip地址
* %A - Local IP address # 本地ip地址
* %b - Bytes sent, excluding HTTP headers, or '-' if zero # 发送的大小
* %B - Bytes sent, excluding HTTP headers # 发送的大小
* %h - Remote host name (or IP address if enableLookups for the connector is false) # 远程主机名
* %H - Request protocol # 请求协议
* %l - Remote logical username from identd (always returns '-') # 远程逻辑名
* %m - Request method (GET, POST, etc.) # 请求方法
* %p - Local port on which this request was received. See also %{xxx}p below. # 本地端口
* %q - Query string (prepended with a '?' if it exists) # 请求字段
* %r - First line of the request (method and request URI) # 请求首行(包括请求方法和请求url和http协议,即%m,%U,%h)
* %s - HTTP status code of the response # 返回状态
* %S - User session ID # 用户session-id
* %t - Date and time, in Common Log Format # 日期格式
* %u - Remote user that was authenticated (if any), else '-' # 远程登录用户
* %U - Requested URL path # 请求url地址
* %v - Local server name # 本地服务名称
* %D - Time taken to process the request in millis. Note: In httpd %D is microseconds. Behaviour will be aligned to httpd in Tomcat onwards.
# 处理请求耗时(毫秒)
* %T - Time taken to process the request, in seconds. Note: This value has millisecond resolution whereas in httpd it has second resolution. Behaviour will be align to httpd in Tomcat onwards.
# 处理请求耗时(秒)
* %F - Time taken to commit the response, in millis # 提交请求耗时(毫秒)
* %I - Current request thread name (can compare later with stacktraces) # 当前处理线程名称
* %X - Connection status when response is completed: # 连接状态
* X = Connection aborted before the response completed.
* + = Connection may be kept alive after the response is sent.
* - = Connection will be closed after the response is sent.
* %{xxx}i write value of incoming header with name xxx                                  # 根据请求头中的字段输出信息
* %{xxx}o write value of outgoing header with name xxx # 根据返回头中的字段输出信息
* %{xxx}c write value of cookie with name xxx # 根据cookie中的字段输出信息
* %{xxx}r write value of ServletRequest attribute with name xxx #
* %{xxx}s write value of HttpSession attribute with name xxx #
* %{xxx}p write local (server) port (xxx==local) or remote (client) port (xxx=remote) # 本地、远程端口
* %{xxx}t write timestamp at the end of the request formatted using the enhanced SimpleDateFormat pattern xxx #规定时间戳

tomcat访问日志的更多相关文章

  1. Tomcat访问日志详细配置

    在server.xml里的<host>标签下加上 <Valve className="org.apache.catalina.valves.AccessLogValve&q ...

  2. linux系统tomcat项目部署和tomcat访问日志

    一.只用ip地址访问 先把端口号改成80,然后用 <Host name="localhost"  appBase="webapps"    137     ...

  3. ELK之收集tomcat访问日志

    把tomcat访问日志转换成json格式然后收集 修改配置文件conf/server.xml把日志输出改成json格式 添加logstash配置文件(日志按天切割可以使用*进行匹配所有)

  4. Tomcat访问日志详细配置(转)

    在server.xml里的<host>标签下加上<Valve className="org.apache.catalina.valves.AccessLogValve&qu ...

  5. tomcat访问日志分析

    常使用web服务器的朋友大都了解,一般的web server有两部分日志: 一是运行中的日志,它主要记录运行的一些信息,尤其是一些异常错误日志信息 二是访问日志信息,它记录的访问的时间,IP,访问的资 ...

  6. 转 Tomcat访问日志详细配置

    配置http访问日志.Tomcat自带的能够记录的http访问日志已经很详细了取消下面这段的注释: <Valve className="org.apache.catalina.valv ...

  7. 通过Nginx,Tomcat访问日志(access log)记录请求耗时

    一.Nginx通过$upstream_response_time $request_time统计请求和后台服务响应时间 nginx.conf使用配置方式: log_format main '$remo ...

  8. ELK收集tomcat访问日志并存取mysql数据库案例

    这个案例中,tomcat产生的日志由filebeat收集,然后存取到redis中,再由logstash进行过滤清洗等操作,最后由elasticsearch存储索引并由kibana进行展示. 1.配置t ...

  9. spring boot Tomcat访问日志

    1.Tomcat设置访问日志 <Host name="localhost" appBase="webapps" unpackWARs="true ...

  10. Tomcat访问日志浅析 (转)

    来自:http://blog.chinaunix.net/uid-20691565-id-3938220.html Tomcat的访问日志是靠org.apache.catalina.valves.Ac ...

随机推荐

  1. VS快捷键操作

    1.窗口快捷键记忆诀窍: 凡跟窗口挂上钩的快捷键必有一个W(Windows):Ctrl+W,W: 浏览器窗口 (浏览橱窗用有道的翻译是window shopping) Ctrl+W,S: 解决方案管理 ...

  2. PJzhang:U盘容量变小后的恢复以及U盘加密

    猫宁!!! 参考链接:https://jingyan.baidu.com/article/8ebacdf0544ae049f65cd5da.html 我的一个U盘,16G,制作了deepin linu ...

  3. stack smashing detected解决过程

    在执行程序结束return 0 之后出现上图问题.主要原因是在程序中存在数组越界. 解决方法: 1. 查看定义的结构体内buffer大小,为4096字节 typedef struct { UINT32 ...

  4. Python全栈开发之2、数据类型-数值、字符串、列表、字典、元组和文件处理

    一.Python 运算符 1.算术运算: 2.比较运算: 3.赋值运算: 4.逻辑运算: 5.成员运算: 二.基本数据类型 1.数字整型 int(整型) 在32位机器上,整数的位数为32位,取值范围为 ...

  5. Elasticsearch Metric聚合

    首先查看index文档信息 $ curl -XGET "http://172.16.101.55:9200/_cat/indices?v" 输出 health status ind ...

  6. 3.Java和hadoop的安装

    先创建目录 [hadoop@node1 opt]$ cd /opt [hadoop@node1 opt]$ sudo mkdir /opt/softwares [hadoop@node1 opt]$ ...

  7. Replace Words

    In English, we have a concept called root, which can be followed by some other words to form another ...

  8. [转帖]RPM的原理及rpm命令常用参数

    RPM的原理及rpm命令常用参数 2015年09月14日 15:39:43 lose_wait 阅读数 1298 https://blog.csdn.net/u012012939/article/de ...

  9. delphi 连接各中数据库方法

    ---恢复内容开始--- 数据库连接字符串的拼写规则的决定条件: • 连接的数据库的类型:SQL Server,Oracle,MySQL,Acess,MogoDB,Visual FoxPro(dBAS ...

  10. 设计模式:状态模式(Status)

    在介绍状态模式之前,我们先来看这样一个实例:你公司力排万难终于获得某个酒店的系统开发项目,并且最终落到了你的头上.下图是他们系统的主要工作(够简单). 当你第一眼看到这个系统的时候你就看出来了这是一个 ...