Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NginxAccessItem ¶
type NginxAccessItem struct { BodyBytesSent string `mapstructure:"body_bytes_sent"` Status string `mapstructure:"status"` RemoteAddress string `mapstructure:"remote_addr"` HTTPUserAgent string `mapstructure:"http_user_agent"` Request string `mapstructure:"request"` BytesSent string `mapstructure:"bytes_sent"` RequestLength string `mapstructure:"request_length"` RequestTime string `mapstructure:"request_time"` GzipRatio string `mapstructure:"gzip_ratio"` ServerProtocol string `mapstructure:"server_protocol"` UpstreamConnectTime string `mapstructure:"upstream_connect_time"` UpstreamHeaderTime string `mapstructure:"upstream_header_time"` UpstreamResponseTime string `mapstructure:"upstream_response_time"` UpstreamResponseLength string `mapstructure:"upstream_response_length"` }
NginxAccessItem represents the decoded access log data
func NewNginxAccessItem ¶
func NewNginxAccessItem(v map[string]string) (*NginxAccessItem, error)
type PatternTailer ¶
type PatternTailer struct {
// contains filtered or unexported fields
}
func NewPatternTailer ¶
func NewPatternTailer(file string, patterns map[string]string) (*PatternTailer, error)
Click to show internal directories.
Click to hide internal directories.