From af00eaf6208667d750c27edd92048212961c99bf Mon Sep 17 00:00:00 2001 From: Marc Guasch Date: Mon, 26 Oct 2020 17:43:55 +0100 Subject: [PATCH] Use default config when creating the input (#22126) (#22139) (cherry picked from commit 2f7b15b7da8f41ef1534d5c5a3c1ac80d9ffbd40) --- x-pack/filebeat/input/httpjson/input_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/filebeat/input/httpjson/input_manager.go b/x-pack/filebeat/input/httpjson/input_manager.go index 21f5066dc05..8d7e6070786 100644 --- a/x-pack/filebeat/input/httpjson/input_manager.go +++ b/x-pack/filebeat/input/httpjson/input_manager.go @@ -36,7 +36,7 @@ func (m inputManager) Init(grp unison.Group, mode v2.Mode) error { // Create creates a cursor input manager if the config has a date cursor set up, // otherwise it creates a stateless input manager. func (m inputManager) Create(cfg *common.Config) (v2.Input, error) { - var config config + config := newDefaultConfig() if err := cfg.Unpack(&config); err != nil { return nil, err }