# JSON Results limited for 150 results per query

**URL:** https://community.graylog.org/t/json-results-limited-for-150-results-per-query/3534
**Category:** Graylog Central (peer support)
**Created:** [December 17, 2017, 8:03am UTC](https://community.graylog.org/t/json-results-limited-for-150-results-per-query/3534 "2017-12-17T08:03:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tzahi.fur](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@tzahi.fur](https://community.graylog.org/u/tzahi.fur)
#### Post date: [December 17, 2017, 8:03am UTC](https://community.graylog.org/t/json-results-limited-for-150-results-per-query/3534/1 "2017-12-17T08:03:06Z")

</div>

Hi,

We’re using Graylog 2.2.2 and when I try to query the search/universal/relative rest API in a JSON format, I get “total\_results”:11090 but the messages array contains only 150 entries.

I didn’t find anything in the documentation limiting results for only 150 entries but in the REST API browser, the ‘Response Content Type’ I can select is only ‘text/csv’

This is the full command I’m using:  
curl -u USER:PASS -H ‘Accept: application/json’ -X GET http://GRAYLOG\_SERVER\_ADDRESS/api/search/universal/relative?query=log\_level%3AERROR&range=86400&fields=message%2Cservice-name

Anyone know what I’m missing?

Thanks,

Tzahi

---

<div class="post-metadata">

### Author: ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)
#### Post date: [December 17, 2017, 6:45pm UTC](https://community.graylog.org/t/json-results-limited-for-150-results-per-query/3534/2 "2017-12-17T18:45:31Z")

</div>

Please upgrade to the latest stable version of Graylog and check if the problem still exists in that version.

---

<div class="post-metadata">

### Author: ![tzahi.fur](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@tzahi.fur](https://community.graylog.org/u/tzahi.fur)
#### Post date: [December 19, 2017, 12:08pm UTC](https://community.graylog.org/t/json-results-limited-for-150-results-per-query/3534/3 "2017-12-19T12:08:36Z")

</div>

Hi,

Thanks for the reply.

We’re currently unable to upgrade Graylog (some devops schedule issue).

I think that the problem is due to the fact that there are a lot of results and the data comes chunked.  
I’m using multiple queries with a ‘limit’ and ‘offset’ parameters, but thought maybe there’s something I’m missing here.

Tzahi

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)
#### Post date: [January 2, 2018, 12:08pm UTC](https://community.graylog.org/t/json-results-limited-for-150-results-per-query/3534/4 "2018-01-02T12:08:58Z")

</div>

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