Imports github.com/grafana/loki/pkg/util/flagext github.com/weaveworks/common/logging github.com/prometheus/common/model github.com/grafana/loki/pkg/promtail/client github.com/grafana/loki/pkg/logql github.com/cortexproject/cortex/pkg/util/flagext Standard library imports encoding/json errors fmt io/ioutil strconv strings time