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