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