Within my grafana a loki datasource is processing simple queries just fine, but from the logcli
I am not only getting the annoying proto: duplicate proto type registeredsyntax
errors I am only returning a cryptic syntax error:
logcli query '{namespace="monitoring"}'
2021-11-16 14:22:31.959075 I | proto: duplicate proto type registered: purgeplan.DeletePlan
2021-11-16 14:22:31.959140 I | proto: duplicate proto type registered: purgeplan.ChunksGroup
2021-11-16 14:22:31.959146 I | proto: duplicate proto type registered: purgeplan.ChunkDetails
2021-11-16 14:22:31.959152 I | proto: duplicate proto type registered: purgeplan.Interval
2021-11-16 14:22:31.968625 I | proto: duplicate proto type registered: grpc.PutChunksRequest
2021-11-16 14:22:31.968644 I | proto: duplicate proto type registered: grpc.GetChunksRequest
2021-11-16 14:22:31.968650 I | proto: duplicate proto type registered: grpc.GetChunksResponse
2021-11-16 14:22:31.968655 I | proto: duplicate proto type registered: grpc.Chunk
2021-11-16 14:22:31.968659 I | proto: duplicate proto type registered: grpc.ChunkID
2021-11-16 14:22:31.968664 I | proto: duplicate proto type registered: grpc.DeleteTableRequest
2021-11-16 14:22:31.968668 I | proto: duplicate proto type registered: grpc.DescribeTableRequest
2021-11-16 14:22:31.968673 I | proto: duplicate proto type registered: grpc.WriteBatch
2021-11-16 14:22:31.968677 I | proto: duplicate proto type registered: grpc.WriteIndexRequest
2021-11-16 14:22:31.968682 I | proto: duplicate proto type registered: grpc.DeleteIndexRequest
2021-11-16 14:22:31.968686 I | proto: duplicate proto type registered: grpc.QueryIndexResponse
2021-11-16 14:22:31.968690 I | proto: duplicate proto type registered: grpc.Row
2021-11-16 14:22:31.968694 I | proto: duplicate proto type registered: grpc.IndexEntry
2021-11-16 14:22:31.968699 I | proto: duplicate proto type registered: grpc.QueryIndexRequest
2021-11-16 14:22:31.968703 I | proto: duplicate proto type registered: grpc.UpdateTableRequest
2021-11-16 14:22:31.968715 I | proto: duplicate proto type registered: grpc.DescribeTableResponse
2021-11-16 14:22:31.968720 I | proto: duplicate proto type registered: grpc.CreateTableRequest
2021-11-16 14:22:31.968725 I | proto: duplicate proto type registered: grpc.TableDesc
2021-11-16 14:22:31.968730 I | proto: duplicate proto type registered: grpc.TableDesc.TagsEntry
2021-11-16 14:22:31.968734 I | proto: duplicate proto type registered: grpc.ListTablesResponse
2021-11-16 14:22:31.968739 I | proto: duplicate proto type registered: grpc.Labels
2021-11-16 14:22:31.968847 I | proto: duplicate proto type registered: storage.Entry
2021-11-16 14:22:31.968854 I | proto: duplicate proto type registered: storage.ReadBatch
http://localhost:3100/loki/api/v1/query_range?direction=BACKWARD&end=1637090551969613137&limit=30&query=%7B%EF%BB%BFnamespace%3D%EF%BB%BF%22monitoring%22%EF%BB%BF%7D&start=1637086951969613137
Error response from server: parse error at line 1, col 3: syntax error: unexpected IDENTIFIER, expecting = or =~ or !~ or != (<nil>) attempts remaining: 0
Query failed: Run out of attempts while querying the server
Versions:
logcli, version 2.4.1 (branch: HEAD, revision: f61a4d261)
build user: root@9cbe2f86250f
build date: 2021-11-08T13:05:10Z
go version: go1.16.2
platform: linux/amd64
Whats happening??..!! How about a riddle? Why does this NOT work:
logcli query '{namespace="monitoring"}'
but this does?
logcli query '{namespace="monitoring"}'
Hint: Copying the text from the web page because I am lazy, I just filled in my values.
Since I am fairly new, I of course thought it must be me and it wasted several hours of my time.