-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
invalid schema config: must specify at least one schema configuration #2906
Comments
Are you sure you downloaded logcli and not the loki binary? |
Glad to see this issue, as I fell for the same trick ! |
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. |
Just for the record - I faced the same error message. $ loki -verify-config /path/to/loki.yaml when it should be: $ loki -verify-config -config.file /path/to/loki.yaml |
* Move regex opt to after lookup fixes grafana#2906 When we use the caching client (which is what is used in most cases), we load the entire row (tableName+HashKey) irrespective of what the rangeKey parameters are. Which means with the optimisation, we are loading the same row multiple times and then operating on the same data. This PR moves the optimisation to after the data is loaded which should be faster. Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Add benchmark Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Add changelog entry Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> * Address feedback Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com> Co-authored-by: Peter Štibraný <peter.stibrany@grafana.com>
I had the same issue on windows. There was an empty space at the beginning of the config file which was causing the issue. |
Exactly, your comment helped me. It was also calling a configuration file that was empty. |
can you please paste your config file yaml as i am also getting the error and i have no space issues.It looks as below |
Lol thanks for your comment |
I installed logcli from the release and I keep getting this error
level=error ts=2020-11-10T09:20:39.867654699Z caller=main.go:85 msg="validating config" err="invalid schema config: must specify at least one schema configuration"
Does not matter which query I run I get that error.
The text was updated successfully, but these errors were encountered: