Documentation ¶
Overview ¶
Package apachelogs contains parsers for logs of the Apache HTTP Server
Index ¶
Constants ¶
View Source
const ( TypeAccessCombined = `Apache.AccessCombined` TypeAccessCommon = `Apache.AccessCommon` )
Variables ¶
This section is empty.
Functions ¶
func NewAccessCombinedParser ¶
func NewAccessCommonParser ¶
Types ¶
type AccessCombined ¶
type AccessCombined struct { AccessCommonLog UserAgent *string `json:"user_agent,omitempty" description:"The User-Agent HTTP header"` Referer *string `json:"referer,omitempty" description:"The Referer HTTP header"` parsers.PantherLog }
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined https://httpd.apache.org/docs/current/mod/mod_log_config.html#formats nolint:lll
func (*AccessCombined) ParseString ¶
func (log *AccessCombined) ParseString(s string) error
func (*AccessCombined) SetRow ¶
func (log *AccessCombined) SetRow(row []string) error
type AccessCombinedParser ¶
type AccessCombinedParser struct{}
func (*AccessCombinedParser) LogType ¶
func (*AccessCombinedParser) LogType() string
func (*AccessCombinedParser) New ¶
func (*AccessCombinedParser) New() parsers.LogParser
func (*AccessCombinedParser) Parse ¶
func (*AccessCombinedParser) Parse(log string) ([]*parsers.PantherLog, error)
type AccessCommon ¶
type AccessCommon struct { AccessCommonLog parsers.PantherLog }
LogFormat "%h %l %u %t \"%r\" %>s %b" common nolint:lll
type AccessCommonLog ¶
type AccessCommonLog struct { RemoteHostIPAddress *string `` /* 255-byte string literal not displayed */ ClientIdentityRFC1413 *string `` /* 136-byte string literal not displayed */ UserID *string `` /* 131-byte string literal not displayed */ RequestTime *timestamp.RFC3339 `json:"request_time,omitempty" description:"The time that the request was received."` RequestMethod *string `json:"request_method,omitempty" description:"The HTTP request method"` RequestURI *string `json:"request_uri,omitempty" description:"The HTTP request URI"` RequestProtocol *string `json:"request_protocol,omitempty" description:"The HTTP request protocol"` ResponseStatus *int16 `json:"response_status" description:"The HTTP status of the response"` ResponseSize *int64 `json:"response_size,omitempty" description:"The size of the HTTP response in bytes"` }
nolint:lll
func (*AccessCommonLog) ParseString ¶
func (log *AccessCommonLog) ParseString(s string) error
func (*AccessCommonLog) SetRow ¶
func (log *AccessCommonLog) SetRow(row []string) error
type AccessCommonParser ¶
type AccessCommonParser struct{}
func (*AccessCommonParser) LogType ¶
func (p *AccessCommonParser) LogType() string
func (*AccessCommonParser) New ¶
func (p *AccessCommonParser) New() parsers.LogParser
func (*AccessCommonParser) Parse ¶
func (p *AccessCommonParser) Parse(log string) ([]*parsers.PantherLog, error)
Click to show internal directories.
Click to hide internal directories.