I want to use Graylog API to query logs from Graylog and show them in application
According to API, I should be able to use pagination to do that
Expected Behavior
/api/views/search/status/<jobId>?page=0&per-page=1000 should return first 1000 elements for job
/api/views/search/status/<jobId>?page=1&per-page=1000 should return next 1000 elements for job
Current Behavior
page and per-page query parameters are ignored
Possible Solution
Steps to Reproduce (for bugs)
- Create a new search
- Wait for search job to finish
- Try to get search job status(and it's data) with pagination
Context
Your Environment
- Graylog Version: 7.1.5(in docker)
- Java Version: Eclipse Adoptium 21.0.11(in docker)
- OpenSearch Version: Whatever the 7.1.5 datanode(in docker) has
- MongoDB Version: 7.0 (in docker)
- Operating System: Host OS: Manjaro.. others Docker
- Browser version: Not relevant
Checklist
[] This issue fix need to be backported.
[] Does this issue have security implications?
I want to use Graylog API to query logs from Graylog and show them in application
According to API, I should be able to use pagination to do that
Expected Behavior
/api/views/search/status/<jobId>?page=0&per-page=1000should return first 1000 elements for job/api/views/search/status/<jobId>?page=1&per-page=1000should return next 1000 elements for jobCurrent Behavior
pageandper-pagequery parameters are ignoredPossible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
Checklist
[] This issue fix need to be backported.
[] Does this issue have security implications?