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