-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timestamp_types.go
30 lines (29 loc) · 1.43 KB
/
timestamp_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package main
// TimestampTypes - regexps for time formats
var TimestampTypes = map[string]string{
"alertlog": `^([STMWF][uoehra][neduit].*\s+\d\d\d\d)$`,
"baida": `(\d+\/\w+\/\d{4}:\d\d:\d\d:\d\d\s[^\s]+)`,
"clck-error": `\tts=(\d+)\t`,
"common": `(?:^|\s)\[([^\]]+)\]`,
"crypta": `^\[(\d{4}\/\d\d\/\d\d\s\d\d:\d\d:\d\d)`,
"duffman-http-log": `([0-9][0-9]:[0-9][0-9]:[0-9][0-9])`,
"gofetcher": `(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d)`,
"handystats": `^(\d+)\d\d\d\s`,
"imap": `^\[\d{4}-\w+-\d{2} (\d\d:\d\d:\d\d\.\d{6})`,
"imap-timing": `^\[\d{4}-\d{2}-\d{2} (\d\d:\d\d:\d\d\.\d{3})`,
"java": `(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d)`,
"lighttpd": ` - \[([^\]]+)\]`,
"listenerlog": `(\d+-\w+-\d+\s+\d+:\d+:\d+)`,
"loadlog": `^[-\d]+\t(\d+)\t`,
"mongodb": `^.*T([0-9\:]+)\..*`,
"mulcagate": `\[.+?\s+(\d+:\d+:\d+)`,
"passagelog": `^[^\t]+\t\d+\t\d+\t(\d+)\d{6}\t`,
"phantom": `^\d+\s+(\d+-\d+-\d+\s+\d+:\d+:\d+)`,
"postgres": `(\d\d\d\d-\d\d-\d\d\ \d\d\:\d\d\:\d\d.\d\d\d\ MSK)`,
"squid": `^(\d+)\.`,
"statbox": `^\[(.+? \d\d:\d\d:\d\d)`,
"syslog": `(\w+\s+\d+\s+\d+:\d+:\d+)`,
"syslog-ng": `^(\d+-\d+-\d+T\d+:\d+:\d+)\+\d+:\d+`,
"tskv": `(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d)`,
"yplatform": `^\[(\d+\/\w+\/\d{4}:\d\d:\d\d:\d\d)\s[^\s]+\]`,
}