diff --git a/CHANGELOG.md b/CHANGELOG.md index e1534c198b08e..8e5fd826c4a5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * [3532](https://github.com/grafana/loki/pull/3532) **MichelHollands**: Update vendored Cortex to 8a2e2c1eeb65 * [3446](https://github.com/grafana/loki/pull/3446) **pracucci, owen-d**: Remove deprecated config `querier.split-queries-by-day` in favor of `querier.split-queries-by-interval` * [3586](https://github.com/grafana/loki/pull/3587) **rsteneteg** Remove filemanager targets that no longer has any tails, to allow them to be recreated with the proper path +* [3739](https://github.com/grafana/loki/pull/3739) **rsteneteg** Allow users to run instant queries in the past using LogCLI ## 2.2.0 (2021/03/10) diff --git a/pkg/logcli/client/client.go b/pkg/logcli/client/client.go index b9459058a7898..0e0db3cc413ca 100644 --- a/pkg/logcli/client/client.go +++ b/pkg/logcli/client/client.go @@ -63,7 +63,7 @@ func (c *DefaultClient) Query(queryStr string, limit int, time time.Time, direct qsb := util.NewQueryStringBuilder() qsb.SetString("query", queryStr) qsb.SetInt("limit", int64(limit)) - qsb.SetInt("start", time.UnixNano()) + qsb.SetInt("time", time.UnixNano()) qsb.SetString("direction", direction.String()) return c.doQuery(queryPath, qsb.Encode(), quiet)