Documentation
¶
Index ¶
Constants ¶
View Source
const ( INT = "int" TAG = "tag" FLOAT = "float" STRING = "string" DURATION = "duration" DROP = "drop" EPOCH = "EPOCH" EPOCH_NANO = "EPOCH_NANO" GENERIC_TIMESTAMP = "GENERIC_TIMESTAMP" )
View Source
const DEFAULT_PATTERNS = `` /* 3930-byte string literal not displayed */
DEFAULT_PATTERNS SHOULD BE KEPT IN-SYNC WITH patterns/influx-patterns
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
Patterns []string
CustomPatterns string
CustomPatternFiles []string
Measurement string
// Timezone is an optional component to help render log dates to
// your chosen zone.
// Default: "" which renders UTC
// Options are as follows:
// 1. Local -- interpret based on machine localtime
// 2. "America/Chicago" -- Unix TZ values like those found in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
// 3. UTC -- or blank/unspecified, will return timestamp in UTC
Timezone string
// contains filtered or unexported fields
}
Parser is the primary struct to handle and grok-patterns defined in the config toml
Click to show internal directories.
Click to hide internal directories.