Historical data cannot be retrieved through gRPC queries

After examining the source code, it turns out that when using a non-FilesystemObjectStoreType, minDuration is applied as maxLookBack, which limits gRPC to querying only recent data. However, this restriction does not apply to HTTP requests.

Could you explain the reasoning behind this design, or suggest any methods to allow gRPC to query data from the past six months?

1 Like

I don’t quite understand your question. All your interactions with Loki should be through the HTTP API.

Does this mean that I can’t use gRPC to retrieve data from Loki? I noticed that there are proto files in Loki, and they contain methods related to querying.

Pretty sure those are for internal interactions between Loki components.