Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_SECONDS_BETWEEN_POLL_FOR_NEW_CONTAINERS = 60
View Source
const DOCKER_LOG_TIME_FORMAT = "2006-01-02T15:04:05.999999999Z"
View Source
const MAX_INFLUXDB_INSERT_BATCH_SIZE = 20000
Variables ¶
View Source
var BRACKET_PREFIX_REGEX = regexp.MustCompile(`\[([^]]*)\]\s(.*)?`)
View Source
var COMBINED_LOG_FORMAT_REGEX = regexp.MustCompile(
`^([0-9.]+)\s` +
`([w.-]+)\s` +
`([\w.-]+)\s` +
`\[([^]]+)\]\s` +
`"((?:[^"]|")+)"\s` +
`(\d{3})\s` +
`(\d+|-)\s` +
`"((?:[^"])+)"\s` +
`"((?:[^"]|")+)"`)
View Source
var DOCKER_LOG_LINE_REGEXP = regexp.MustCompile(
"^([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{9}Z)" +
" (.*)\n$")
View Source
var INFLUXDB_TAGS_SET = map[string]bool{ "image_name": true, "status_code": true, }
View Source
var LOGS_TIMEOUT = time.Duration(1 * time.Second)
View Source
var STREAM_TYPE_DESCRIPTIONS = []string{"STDIN", "STDOUT", "STDERR"}
View Source
var TAIL_LOG_LINE_FLUSH_TIMEOUT = time.Second
Functions ¶
func TailDockerLogsForever ¶
func ValidateOptions ¶
func ValidateOptions(options *Options)
Types ¶
type JsonFileLog ¶
Click to show internal directories.
Click to hide internal directories.