apachelogs

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

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 NewAccessCombinedParser() parsers.LogParser

func NewAccessCommonParser

func NewAccessCommonParser() parsers.LogParser

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) Parse

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 (*AccessCommonParser) Parse

func (p *AccessCommonParser) Parse(log string) ([]*parsers.PantherLog, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL