Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strptime ¶
type Strptime struct { SourceKey string KeepSource bool // Format follows rules of C strptime, but %Z does not support CST. Format string // By default, the processor will use the local UTC offset if it can not find any // information in Format (%z or %s). // You can use this parameter to set customized offset, such as -28800 for UTC-8. // Examples: // 1. 2016/01/02 12:59:59 doesn't have offset information, assume as UTC0 // - Default: set to local offset (UTC+8), get 2016/01/02 12:59:59 +0800. // - Set to UTC-8 (-28800): get 2016/01/02 12:59:59 -0800. // 2. 2016/01/02 12:59:59 +0700 have offset information => 2016/01/02 05:59:59 +0000 // - Default: if local offset is UTC+8, get 2016/01/02 13:59:59 +0800. // - Set to UTC-8 (-28800): get 2016/01/02 05:59:59 -0800. UTCOffset int // Flag to enable UTFOffset, false by default. AdjustUTCOffset bool // Set AlarmIfFail to true to alarm when strptime fails, true by default. AlarmIfFail bool // contains filtered or unexported fields }
Strptime use strptime to parse specified field (through SourceKey) with Format, and overwrite the time of log if parsing is successful.
Click to show internal directories.
Click to hide internal directories.