Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Apache ¶
type Apache struct { // If set to true, ignores non-fatal errors while parsing line, // which may leave some fields empty or invalid. Loose bool }
Apache log parser
type LTSV ¶
type LTSV struct { // If set to true, ignores non-fatal errors while parsing line, // which may leave some fields empty or invalid. Loose bool }
LTSV access log parser
type Log ¶
type Log struct { VirtualHost string `ltsv:"vhost"` Host string RemoteLogname string `ltsv:"ident"` User string Time time.Time `ltsv:"-"` TimeStr string `ltsv:"time"` Request string `ltsv:"req"` Status int Size uint64 Referer string UserAgent string `ltsv:"ua"` ReqTime *float64 ReqTimeMicroSec *float64 `ltsv:"reqtime_microsec"` AppTime *float64 TakenSec *float64 `ltsv:"taken_sec"` // Hatena specific ForwardedFor string RequestURI string `ltsv:"uri"` Protocol string Method string }
Log is the struct stored parsed result of single line of accesslog
type Parsers ¶ added in v1.4.0
Parsers represents a set of available parsers
func (Parsers) GuessParser ¶ added in v1.4.0
GuessParser guesses the parser from line
Click to show internal directories.
Click to hide internal directories.