Imports github.com/elastic/beats/libbeat/common github.com/elastic/beats/libbeat/outputs/codec/json github.com/elastic/beats/libbeat/publisher/beat github.com/elastic/beats/metricbeat/mb github.com/elastic/beats/metricbeat/mb/module Standard library imports flag fmt io/ioutil os sync testing time