Imports github.com/elastic/beats/libbeat/common github.com/elastic/beats/libbeat/common/backoff github.com/elastic/beats/libbeat/logp github.com/elastic/beats/libbeat/outputs/elasticsearch github.com/gofrs/uuid github.com/pkg/errors Standard library imports context encoding/json errors fmt math/rand net/http strconv strings sync time