-
Notifications
You must be signed in to change notification settings - Fork 3.7k
query log with limit of 1000 #2226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can change it in Grafana in the datasource section of Loki. If you use logcli it's a simple flag. If you use the API it's a query string Hope this helps. |
@yangvipguang You can change the |
Ok,I think so. But before I do't find the setting in the limits_config configuration of document. I will try. Thanks |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
I'm a bit confused about this: but why I still get 1000 limit in grafana explore? |
^ ah I found it in datasource settings. |
Could you share your knowledge as to how you found the datasource settings. |
Regardless of what value i set for max_entries_limit_per_query in values.yaml, i see that loki pod always defaults it to 5000. I tried with new installation, with upgrades, etc, it still defaults to 5000. |
@yongzhang the configuration to increase max lines for loki datasource will be like below
|
Me, too. How did you solve this problem? |
To increase the maximum number of entries returned per query in Grafana when using Loki, you'll need to modify the max_entries_limit_per_query parameter in your Loki configuration file (loki-config.yaml or similar). By default, this value is set to 5000, which means any query in Grafana will only return up to 5,000 log entries unless specified otherwise. To raise this limit, you can set it up to a maximum of 50000. Here’s how to update your Loki config:
Make sure this setting is under the limits_config section. After updating the config file, restart your Loki instance to apply the changes. For more details, you can refer to the official Loki configuration documentation: Let me know if you'd like help formatting the config file or troubleshooting the change. |
I want to know how to increase the number of limit for quering log 。Does it configure in configuration or some way to query the log with QL 。or it is hard-code in the code 。
The text was updated successfully, but these errors were encountered: