From c61369be49f87477196b65ceef86e991332a1fe5 Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Thu, 12 Mar 2020 20:16:51 +0100 Subject: [PATCH] Add layouts to the String method of the timestamp processor (#15504) (#16846) When dealing with autodiscover & hints, especially, that generate new configurations depending on the discovered workloads, having the `layouts` as part of the debug message is quite useful for checking what the timestamp processor is trying to match against the target field. (cherry picked from commit 9ff5bc30917c3ed81dfbde0c3e3950ae8a89895c) Co-authored-by: Jorge Luis Betancourt Gonzalez --- libbeat/processors/timestamp/timestamp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbeat/processors/timestamp/timestamp.go b/libbeat/processors/timestamp/timestamp.go index 20da35fdb7a..5c1a3e47d12 100644 --- a/libbeat/processors/timestamp/timestamp.go +++ b/libbeat/processors/timestamp/timestamp.go @@ -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) {