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