Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!
1. Describe your incident: Error with route api/search/aggregate
2. Describe your environment:
-
OS Information: EC2 AWS with graylog docker
-
Package Version:Graylog 7.0.2+7a367fe on server (Eclipse Adoptium 21.0.9 on Linux 6.14.0-1017-aws)
-
Service logs, configurations, and environment variables:
-
{
"type": "ApiError", "message": "At least one grouping has to be provided!"}
3. What steps have you already taken to try and solve the problem? POST QUERY TO => /api/search/aggregate
4. How can the community help?
Hello,
I am encountering an issue when using this route:
/api/search/aggregate
I am getting the following error:
{
"type": "ApiError",
"message": "At least one grouping has to be provided!"
}
Here is my payload:
{
“query”: “gl2_source_input:693aac18594a8f7944d441a9”,
“timerange”: {
“type”: “keyword”,
“keyword”: “today”
},
“group_by”: [
{
“field”: “transactiontypecode”
},
{
“field”: “username”,
“limit”: 15
}
],
“metrics”: [
{
“function”: “count”
}
]
}
header :
accept: application/json
content-type: application/json
Can you help me resolve this error?
Thank you
Translated with DeepL.com (free version)
Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]