Imports github.com/elastic/beats/metricbeat/schema github.com/elastic/beats/libbeat/common github.com/elastic/beats/libbeat/logp github.com/elastic/beats/libbeat/processors github.com/elastic/beats/metricbeat/schema/mapstriface github.com/pkg/errors Standard library imports bytes context encoding/json fmt io/ioutil net net/http time