Imports github.com/elastic/beats/libbeat/common github.com/elastic/beats/libbeat/logp github.com/elastic/beats/libbeat/outputs github.com/elastic/beats/libbeat/outputs/mode Standard library imports bytes crypto/tls encoding/json errors expvar fmt io io/ioutil math/rand net net/http net/url strconv strings sync/atomic time