Documentation
¶
Index ¶
- Constants
- func RegisterParser(m ParserMeta)
- type CaddyJsonLog
- type CaddyJsonLogHeader
- type CaddyJsonLogRequest
- type GoAccessFormatParser
- type InvalidParserError
- type LogItem
- func ParseCaddyJSON(line []byte) (LogItem, error)
- func ParseNginxCombined(line []byte) (logItem LogItem, err error)
- func ParseNginxCombinedRegex(line []byte) (LogItem, error)
- func ParseNginxJSON(line []byte) (LogItem, error)
- func ParseRsyncProxy(line []byte) (LogItem, error)
- func ParseTencentCDN(line []byte) (logItem LogItem, err error)
- type NewFunc
- type NginxJSONLog
- type Parser
- type ParserFunc
- type ParserMeta
Constants ¶
View Source
const CommonLogFormat = "02/Jan/2006:15:04:05 -0700"
Variables ¶
This section is empty.
Functions ¶
func RegisterParser ¶
func RegisterParser(m ParserMeta)
Types ¶
type CaddyJsonLog ¶
type CaddyJsonLog struct {
Msg string `json:"msg"`
Timestamp float64 `json:"ts"` // (unix_seconds_float)
Request CaddyJsonLogRequest `json:"request"`
Size uint64 `json:"size"`
}
type CaddyJsonLogHeader ¶
type CaddyJsonLogHeader struct {
Useragent []string `json:"User-Agent"`
}
type CaddyJsonLogRequest ¶
type CaddyJsonLogRequest struct {
RemoteIP string `json:"remote_ip"`
ClientIP string `json:"client_ip"`
Uri string `json:"uri"`
Headers CaddyJsonLogHeader `json:"headers"`
}
type GoAccessFormatParser ¶
type GoAccessFormatParser struct {
// contains filtered or unexported fields
}
type InvalidParserError ¶ added in v0.1.4
type InvalidParserError string
func (InvalidParserError) Error ¶ added in v0.1.4
func (err InvalidParserError) Error() string
type LogItem ¶
type LogItem struct {
Size uint64
Client string
Time time.Time
URL string
Server string
Useragent string
// Parsers wishing to discard this log item can set Discard to true.
Discard bool
}
func ParseCaddyJSON ¶
func ParseNginxCombined ¶
func ParseNginxCombinedRegex ¶
func ParseNginxJSON ¶
func ParseRsyncProxy ¶ added in v0.1.1
func ParseTencentCDN ¶
type NginxJSONLog ¶
type ParserFunc ¶
type ParserMeta ¶
func All ¶
func All() []ParserMeta
Click to show internal directories.
Click to hide internal directories.