Imports github.com/pkg/errors github.com/elastic/beats/libbeat/common/cfgtype github.com/elastic/beats/libbeat/logp github.com/elastic/beats/libbeat/outputs/transport github.com/elastic/beats/filebeat/inputsource github.com/elastic/beats/libbeat/common/transport/tlscommon Standard library imports bufio bytes crypto/tls crypto/x509 fmt io net sync time