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 Standard library imports context encoding/json errors fmt math/rand net/http strconv sync time