Set log format: The server is apache and other time

xiaoxiao2021-03-31  201

v

Server

Apache

When you do, you should set it according to the actual log format.

Analytical log format.

v

The default format is:

% a -% T% M% U% H% S% B,

Its corresponding log is recorded

v

v

v

v

Log separator: generally spaces for separating each

Log entry

v

Filtering characters in the log, generally referring to the definition of the log

Or separator, such as

[]

"

"

Log format

"

in

The symbolic meaning is as follows

Symbolic meaning

% a visitor IP

% b Send byte number

% R Access Source% B Received byte Accign CAC Customer Agent% D Access Date, Example: 2001-5-27 OR 5/27/2001% T Access time, Example: 12:23:34% T Time The format is formatted by the following time format specified% P processing time% L Accessor name% M request method% U requested by the resource (URL)% Q request string% H requesting the protocol% S request status code

The symbolic meaning in "Access Time" seconds% s minutes% M hour% h year% Y month English abbreviation, such as Jan Jan% MB month% M date% d Meaning symbol

转载请注明原文地址:https://www.9cbs.com/read-130811.html

New Post(0)