Imports github.com/elastic/beats/libbeat/common github.com/elastic/beats/libbeat/common/transport/tlscommon github.com/elastic/beats/libbeat/logp github.com/elastic/beats/libbeat/outputs/transport github.com/elastic/go-ucfg/yaml github.com/pkg/errors Standard library imports bytes encoding/json errors fmt io io/ioutil net/http net/url os path/filepath regexp strings time