1. * %a - Remote IP address # 远程ip地址
  2. * %A - Local IP address # 本地ip地址
  3. * %b - Bytes sent, excluding HTTP headers, or '-' if zero # 发送的大小
  4. * %B - Bytes sent, excluding HTTP headers # 发送的大小
  5. * %h - Remote host name (or IP address if enableLookups for the connector is false) # 远程主机名
  6. * %H - Request protocol # 请求协议
  7. * %l - Remote logical username from identd (always returns '-') # 远程逻辑名
  8. * %m - Request method (GET, POST, etc.) # 请求方法
  9. * %p - Local port on which this request was received. See also %{xxx}p below. # 本地端口
  10. * %q - Query string (prepended with a '?' if it exists) # 请求字段
  11. * %r - First line of the request (method and request URI) # 请求首行(包括请求方法和请求url和http协议,即%m,%U,%h)
  12. * %s - HTTP status code of the response # 返回状态
  13. * %S - User session ID # 用户session-id
  14. * %t - Date and time, in Common Log Format # 日期格式
  15. * %u - Remote user that was authenticated (if any), else '-' # 远程登录用户
  16. * %U - Requested URL path # 请求url地址
  17. * %v - Local server name # 本地服务名称
  18. * %D - Time taken to process the request in millis. Note: In httpd %D is microseconds. Behaviour will be aligned to httpd in Tomcat onwards.
  19. # 处理请求耗时(毫秒)
  20. * %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.
  21. # 处理请求耗时(秒)
  22. * %F - Time taken to commit the response, in millis # 提交请求耗时(毫秒)
  23. * %I - Current request thread name (can compare later with stacktraces) # 当前处理线程名称
  24. * %X - Connection status when response is completed: # 连接状态
  25. * X = Connection aborted before the response completed.
  26. * + = Connection may be kept alive after the response is sent.
  27. * - = Connection will be closed after the response is sent.
  1. * %{xxx}i write value of incoming header with name xxx # 根据请求头中的字段输出信息
  2. * %{xxx}o write value of outgoing header with name xxx # 根据返回头中的字段输出信息
  3. * %{xxx}c write value of cookie with name xxx # 根据cookie中的字段输出信息
  4. * %{xxx}r write value of ServletRequest attribute with name xxx #
  5. * %{xxx}s write value of HttpSession attribute with name xxx #
  6. * %{xxx}p write local (server) port (xxx==local) or remote (client) port (xxx=remote) # 本地、远程端口
  7. * %{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. div与焦点事件

    div正常情况下是无法获得焦点的,所以其blur方法和focus方法都是没有用的,解决方案如下: <div tabindex="0"></div> 添加ta ...

  2. Ubuntu16.04系统Tensorflow源码安装

    最近学习Tensorflow,记录一下安装过程.目前安装的是CPU版的 1.下载tensorflow源码 tensorflow是个开源库,在github上有源码,直接在上面下载.下载地址:https: ...

  3. Python:Django 项目中可用的各种装备和辅助

    1 Redis 数据库 2 MySQL 数据库 3 前端服务器 live-server 4 定时任务 django-crontab扩展 5 Docker 容器 --用来运行 FastDFS 分布式文件 ...

  4. 【Qt开发】关于Qt应用程序中的堆栈、静态存储区的使用错误

    [Qt开发]关于Qt应用程序中的堆栈.静态存储区的使用错误 标签:[Qt开发] 最近终于又碰到了这个问题,想在main函数中定义一个局部大的数组,结果运行就报错,尼玛!刚开始真的不知道到发生了什么,后 ...

  5. C++学习笔记-C++与C语言的一些区别

    本文主要是整理一些C++与C的一些小的区别,也就是在使用C与C++时候需要注意的一些问题,C++是以C语言为基础的,并且完全兼容C语言的特性 注释 C语言的注释形式为 /* 注释内容 */ 而C++提 ...

  6. 搭建elk集群 disabled in libcurl elasticsearch-6.2.2 更新license 版本

    0.logstash的部分配置 output { stdout {codec => rubydebug} elasticsearch { hosts => ["172.31.25 ...

  7. ip速度检测与云主机|VPS的抉择:bandwagonhost digitalocean hostWind Vultr Linode

    最近的梯子断了,网站又被注销了.又到了挑vps的时间了.其实, 这些东西,烦死人了.挺浪费生命的. 首先速度测试, MTR测试 网站速度测试 17CE. http://tool.chinaz.com/ ...

  8. [转帖]深度: NVMe SSD存储性能有哪些影响因素?

    深度: NVMe SSD存储性能有哪些影响因素? http://www.itpub.net/2019/07/17/2434/ 之前有一个误解 不明白NVME 到底如何在队列深度大的情况下来提高性能, ...

  9. NoSQL数据库简介与产生

    关系型数据库所存在“问题” >利用ACID原则(原子性,一致性,隔离性,持久性)保证数据完整性: >行列的规范化存储: >预定义结构: >存储数据量“小”: >结构化查询 ...

  10. CSP 2019 RP++

    读入:(转自:chuyds's Blog 法一: while(scanf("%d",&a)!=EOF) 法二: while(cin>>n) 法三: while( ...