Skip to content

Commit

Permalink
Add layouts to the String method of the timestamp processor (#15504)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano authored Mar 5, 2020
1 parent 78e481d commit 9ff5bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbeat/processors/timestamp/timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ func loadLocation(timezone string) (*time.Location, error) {
}

func (p *processor) String() string {
return fmt.Sprintf("timestamp=[field=%s, target_field=%v, timezone=%v]",
p.Field, p.TargetField, p.tz)
return fmt.Sprintf("timestamp=[field=%s, target_field=%v, timezone=%v, layouts=%v]",
p.Field, p.TargetField, p.tz, p.Layouts)
}

func (p *processor) Run(event *beat.Event) (*beat.Event, error) {
Expand Down

0 comments on commit 9ff5bc3

Please sign in to comment.