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 ...
随机推荐
- SqlServer:SqlServer(数据库备份,数据文件迁移,增加数据库文件组,递归查询一周报送情况,查询近X天未报送单位,截断数据库日志,复制单个或多个数据库表到另一个数据库 )
1.数据备份 ) ) ) )),'-','') ) SET @savePath = 'f:/DatabaseBackup/' DECLARE My_Cursor CURSOR FOR ( select ...
- Linux 如何上传/下载文件
注: 如果在操作中,提示没有权限请使用" su - "命令来切换当前账号至" root " 账号 一 . 使用 rz / sz 命令 1 . 登陆 Li ...
- (C#)Appium自动化测试之卸载\重装APP
1.先获取session,实例化driver 2.自动安装APP //安装driver.InstallApp("APP的路径"); //判断是否安装完成,返回true\false ...
- <转>常规测试方法
功能测试 1. 安装测试: 安装过程中对于缺省安装目录及任意指定的安装目录,是否都能正确安装: 若是选择安装,查看能否实现其相应的功能: 在所有能中途退出安装的位置退出安装程序后,验证此程序并未安装成 ...
- ASP.NET Core 入门笔记2,建立项目
1.建立项目 2.项目结构 1.项目结构说明 根目录/文件 说明 .vscode目录 VS Code项目配置目录,相当于.vs..idea文件夹 bin目录 编译输出目录 obj目录 编译配置与中间目 ...
- C学习笔记-内存管理
作用域 一个C语言变量的作用域可以是代码块 作用域,函数作用域或者文件作用域 代码块是{}之间的一段代码 同一个代码块不可以有重名变量 auto自动变量 一般情况下代码块内部定义的变量都是自动变量 也 ...
- 网站性能优化(website performance optimization)2
我们先研究下构建渲染树前的几个步骤:也就是DOM和CSSOM,通常这些步骤的效果最差使你的网页呈现速度非常慢,我们是讨论尽可能快的将HTML流式传输给客户端,使浏览器能够开始构建DOM,还有其他注意事 ...
- PTA(Advanced Level)1031.Hello World for U
Given any string of N (≥5) characters, you are asked to form the characters into the shape of U. For ...
- Storm消费Kafka提交集群运行
1.创建拓扑,配置KafkaSpout.Bolt KafkaTopologyBasic.java: package org.mort.storm.kafka; import org.apache.ka ...
- 安装Composer与PsySH
Windows安装Composer 需要开启 openssl 配置:打开 php 目录下的 php.ini,将 extension=php_openssl.dll 前面的分号去掉就可以了. https ...