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 ...
随机推荐
- UnitTest之Xunit
Unit Test 1.建立单元测试 新建一个类库项目,在Nuget中搜索xunit,选择 xUnit.net 和 xunit.runner.visualstudio 插件包安装. xunit.run ...
- react和vue配置本地代理
React 在react中配置开发环境下的本地代理相对比较简单,直接在package.json文件中修改即可. 但是这样做有其局限性,如果开发中代理多个接口的时候将无法满足需求,我们需要的是下面这种的 ...
- [转帖]天津飞腾回应处理器造假 没有采用ARM的内核,内核自主设计
天津飞腾回应处理器造假没有采用ARM的内核,内核自主设计 ... https://www.expreview.com/63233.html 看了下 同意孟宪瑞老师的关系 飞腾 的确改动了 ARM的架构 ...
- (5.5)mysql高可用系列——MySQL半同步复制(实践)
关键词,mysql半同步复制 [0]实验环境 操作系统:CentOS linux 7.5 数据库版本:5.7.24 数据库架构:主从复制,主库用于生产,从库用于数据容灾和主库备机,采用默认传统的异步复 ...
- Maven引入oracle驱动包
1.下载驱动包 2.加载到本地maven库中 mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=1 ...
- ABC136E Max GCD
Thinking about different ways of thinking. --- LzyRapx 题目 思路比较容易想到. Observations: 每次操作过后和不变. 枚举和的因子 ...
- 关于时间日期的程序,主要datetime模块
以每年的立春作为起始点,每N天为一个单元,任给一个日期,返回该日期所在单元的起始和结束日期.例如:N=3, 输入日期20180208,返回 20180207,20180209(2018年的立春是201 ...
- python基础之 线程_进程关系
上图
- python_0基础开始_day12
第十二节 一,生成器 生成器的核心:生成器的本质就是迭代器 迭代器是python自带的 生成器是程序员自己写的一种迭代器 在python中有三种方式来创建生成器: 基于函数编写 推导式方式编写 pyt ...
- Java设计模式七种写法
懒汉模式-线程不安全 public class Singleton { private static Singleton instance; private Singleton (){ } publi ...