Imports github.com/pkg/errors github.com/elastic/beats/libbeat/common/cfgtype github.com/elastic/beats/libbeat/logp github.com/elastic/beats/filebeat/inputsource Standard library imports bufio bytes fmt io net sync time