Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorGotime ¶
type ProcessorGotime struct { SourceKey string `comment:"the source key prepared to be formatted"` SourceFormat string `` /* 242-byte string literal not displayed */ SourceLocation int `` /* 160-byte string literal not displayed */ DestKey string `comment:"the generated key name."` DestFormat string `comment:"the generated key formatted pattern, more details please see [here](https://golang.org/pkg/time/#Time.Format)."` DestLocation int `comment:"the generated key time zone, such beijing timezone is 8."` SetTime bool `comment:"Whether to config the unix time of the source key to the log time. "` KeepSource bool `comment:"Whether to keep the source key in the log content after the processing."` NoKeyError bool `comment:"Whether to alarm when not found the source key to parse and format."` AlarmIfFail bool `comment:"Whether to alarm when the source key is failed to parse."` // contains filtered or unexported fields }
func (*ProcessorGotime) Description ¶
func (*ProcessorGotime) Description() string
func (*ProcessorGotime) Init ¶
func (p *ProcessorGotime) Init(context ilogtail.Context) error
Init called for init some system resources, like socket, mutex...
func (*ProcessorGotime) ProcessLogs ¶
func (p *ProcessorGotime) ProcessLogs(logs []*protocol.Log) []*protocol.Log
Click to show internal directories.
Click to hide internal directories.