Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllFlagOK = 3
AllFlagOK : all OK
View Source
var PtimeFlag = 1
PtimeFlag : ptime is exists
View Source
var StatusFlag = 2
StatusFlag : stattus is exists
Functions ¶
func DisplayAll ¶ added in v0.2.1
DisplayAll :
Types ¶
type HumanBytes ¶ added in v0.4.12
type HumanBytes uint64
HumanBytes is a custom type to handle human-readable byte inputs
func (*HumanBytes) UnmarshalFlag ¶ added in v0.4.12
func (hb *HumanBytes) UnmarshalFlag(value string) error
UnmarshalFlag parses human inputs like "10MB" or "2GiB" using go-humanize
type Opt ¶ added in v0.4.13
type Opt struct {
LogFile string `` /* 131-byte string literal not displayed */
Format string `long:"format" default:"ltsv" description:"format of logfile. support json and ltsv"`
KeyPrefix string `long:"key-prefix" description:"Metric key prefix" required:"true"`
PtimeKey string `long:"ptime-key" default:"ptime" description:"key name for request_time"`
StatusKeys []string `long:"status-key" default:"status" description:"key name for response status"`
Filter string `long:"filter" default:"" description:"select lines contain a specified text from log"`
SkipUntilBracket bool `long:"skip-until-json" description:"skip reading until first { for json log with plain text header"`
InvertFilter bool `long:"invert-filter" description:"select lines don't contain a specified text from log if a filter is specified"`
MaxReadSize HumanBytes `long:"max-read-size" description:"maximum size of log file to read (e.g. 10MB, 2GiB). 0 uses the default per format"`
Version bool `short:"v" long:"version" description:"Show version"`
}
Click to show internal directories.
Click to hide internal directories.