Graylog 2.3.1 not able to sort query by numeric field. 500 error


(Mihail Politaev) #1

Hello to all!

When i try to sort search result in graylog by one of my numeric field, like “upstream_response_time” from nginx access logs. I am not able to get sorted result, instead i see error:

Could not execute search
There was an error executing your search. Please check your Graylog server logs for more information.

Error Message:
Unable to perform search query.
Details:
Search status code:
500
Search response:
cannot GET http://172.24.24.213:9000/api/search/universal/relative?query=%2A&range=300&limit=150&sort=upstream_response_time%3Aasc (500)

If i go to: http://172.24.24.213:9000/api/search/universal/relative?query=%2A&range=300&limit=150&sort=upstream_response_time%3Aasc

I see:
{"type":"ApiError","message":"Missing required parameterfields"}

But if i add parameter fields in search query like:
http://172.24.24.213:9000/api/search/universal/relative?query=%2A&range=300&limit=150&sort=upstream_response_time%3Aasc&fields=source%2Cmessage%2Cupstream_response_time

All work fine and download csv file with sort results.
Is kind of bug or feature?) How i can sort search results without error?
Thank you.

Graylog version: Graylog 2.3.1+9f2c6ef on localhost (Oracle Corporation 1.8.0_144 on Linux 3.13.0-132-generic)


(system) #2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.