Updated on 2024-03-22 GMT+08:00

Collecting Logs from Tomcat

This section describes the Tomcat access log structuring template details.

Structuring Template Details

  • Tomcat log example
    Table 1 Structuring template example

    Template Name

    Example Log

    TOMCAT

    192.168.12.2 - - [07/Mar/2018:09:49:55 +0800] "GET /logHello/test HTTP/1.1" 200 1943
  • Structuring fields and description
    Table 2 Structuring fields

    Field

    Example

    Description

    Type

    bytes_sent

    1943

    Sent bytes

    long

    remote_ip_address

    192.168.12.2

    Remote IP

    string

    remote_logical_username

    -

    Remote logical username

    string

    remote_user_authenticated

    -

    Remote user authentication

    string

    router_uri

    /logHello/test

    URL of the request

    string

    scheme

    GET

    Request mode

    string

    server_protocol

    HTTP/1.1

    Request protocol

    string

    status

    200

    HTTP status code of the response

    long

    time_local

    07/Mar/2018:09:49:55

    Date

    string