Skip to content

Commit

Permalink
correct logcli instant query timestamp param name (#3739)
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Steneteg <rsteneteg@ea.com>
  • Loading branch information
rsteneteg authored May 18, 2021
1 parent e1a3ab8 commit 0679e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pkg/logcli/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0679e50

Please sign in to comment.