diff --git a/cmd/logcli/main.go b/cmd/logcli/main.go index 0daa63acd7..f190aeb6cf 100644 --- a/cmd/logcli/main.go +++ b/cmd/logcli/main.go @@ -54,7 +54,7 @@ func main() { directionStr = "forward" } url := fmt.Sprintf("%s?query=%s&limit=%d&start=%d&end=%d&direction=%s®exp=%s", - addr, url.QueryEscape(query), *limit, start.Unix(), end.Unix(), directionStr, regexp) + addr, url.QueryEscape(query), *limit, start.Unix(), end.Unix(), directionStr, url.QueryEscape(regexp)) fmt.Println(url) req, err := http.NewRequest("GET", url, nil) diff --git a/pkg/ingester/chunk.go b/pkg/ingester/chunk.go index c3b91cea18..e123d6a1b9 100644 --- a/pkg/ingester/chunk.go +++ b/pkg/ingester/chunk.go @@ -73,7 +73,7 @@ func (c *dumbChunk) Iterator(from, through time.Time, direction logproto.Directi j := sort.Search(len(c.entries), func(j int) bool { return !through.After(c.entries[j].Timestamp) }) - log.Println("from", from, "through", through, "i", i, "j", j, "entried", len(c.entries)) + log.Println("from", from, "through", through, "i", i, "j", j, "entries", len(c.entries)) start := -1 if direction == logproto.BACKWARD { diff --git a/pkg/ingester/instance.go b/pkg/ingester/instance.go index cfa4ac7b91..0b9d2a1a71 100644 --- a/pkg/ingester/instance.go +++ b/pkg/ingester/instance.go @@ -58,6 +58,7 @@ func (i *instance) Push(ctx context.Context, req *logproto.PushRequest) error { } func (i *instance) Query(req *logproto.QueryRequest, queryServer logproto.Querier_QueryServer) error { + log.Println(req) matchers, err := parser.Matchers(req.Query) if err != nil { return err