tomcat访问日志
* %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访问日志的更多相关文章
- Tomcat访问日志详细配置
在server.xml里的<host>标签下加上 <Valve className="org.apache.catalina.valves.AccessLogValve&q ...
- linux系统tomcat项目部署和tomcat访问日志
一.只用ip地址访问 先把端口号改成80,然后用 <Host name="localhost" appBase="webapps" 137 ...
- ELK之收集tomcat访问日志
把tomcat访问日志转换成json格式然后收集 修改配置文件conf/server.xml把日志输出改成json格式 添加logstash配置文件(日志按天切割可以使用*进行匹配所有)
- Tomcat访问日志详细配置(转)
在server.xml里的<host>标签下加上<Valve className="org.apache.catalina.valves.AccessLogValve&qu ...
- tomcat访问日志分析
常使用web服务器的朋友大都了解,一般的web server有两部分日志: 一是运行中的日志,它主要记录运行的一些信息,尤其是一些异常错误日志信息 二是访问日志信息,它记录的访问的时间,IP,访问的资 ...
- 转 Tomcat访问日志详细配置
配置http访问日志.Tomcat自带的能够记录的http访问日志已经很详细了取消下面这段的注释: <Valve className="org.apache.catalina.valv ...
- 通过Nginx,Tomcat访问日志(access log)记录请求耗时
一.Nginx通过$upstream_response_time $request_time统计请求和后台服务响应时间 nginx.conf使用配置方式: log_format main '$remo ...
- ELK收集tomcat访问日志并存取mysql数据库案例
这个案例中,tomcat产生的日志由filebeat收集,然后存取到redis中,再由logstash进行过滤清洗等操作,最后由elasticsearch存储索引并由kibana进行展示. 1.配置t ...
- spring boot Tomcat访问日志
1.Tomcat设置访问日志 <Host name="localhost" appBase="webapps" unpackWARs="true ...
- Tomcat访问日志浅析 (转)
来自:http://blog.chinaunix.net/uid-20691565-id-3938220.html Tomcat的访问日志是靠org.apache.catalina.valves.Ac ...
随机推荐
- XCTF (app1)
打开app.一个文本框,随便输入提示如下图. 打开JEB反编译. v2调用getPackageInfo获取版本信息.一般 Android 通过 PackageInfo 这个类来获取应用安装包信息,比如 ...
- Linux常用目录名称
目录 用途 / 虚拟目录的根文件,通常不会在这里存储文件 /bin 二进制目录,存放许多用户的GNU工具 /boot 启动目录,存放启动文件 /dev 设备目录,Linux在这里创建设备节点 /etc ...
- 03-MySQL多表操作
一.表之间的关系 1.如何找出两张表之间的关系 分析步骤: #.先站在左表的角度去找 是否左表的多条记录可以对应右表的一条记录,如果是,则证明左表的一个字段foreign key 右表一个字段(通常是 ...
- numpy.take()
numpy.take numpy的.take (a,indices,axis = None,out = None,mode ='raise' ) 沿轴取数组中的元素. 这个函数与“花式”索引(使用数组 ...
- Microsoft Visual Studio 中工具箱不显示DevExpress控件的解决办法
我安装的是DevExpress15.2 1.找到安装目录D:\Program Files\DevExpress15.2\Components\Tools, 运行控制台 内容换成cmd 2.执行下面的命 ...
- Emgu 学习(4) 使用指针访问图像内存
在原始图像最初的10行绘制一个颜色条 class Program { static void Main(String[] args) { Mat img = CvInvoke.Imread(@&quo ...
- RramSim2
1.官网 http://www.computer.org/csdl/letters/ca/2011/01/lca2011010016-abs.html 2.介绍 http://blog.csdn.ne ...
- Mysql8 root密码忘记了
需要确定自己的mysql版本是否是8 [root@smonitor ~]# mysql --version mysql Ver 8.0.13 for Linux on x86_64 (MySQL Co ...
- C语言实现远程代码注入
#include <windows.h> #include <iostream> #define STRLEN 20 typedef struct _DATA { DWORD ...
- Linux内核、mysql内核、Tcp/Ip内核、java等知识书籍
LINUX <linux内核设计与实现>(2011年出版,链接:https://pan.baidu.com/s/107hriLNVt05A8egeU8Du-g 密码:0cgn) < ...