Skip to content

/api/views/search/status/{jobId} pagination does not work #26636

Description

@mikk150

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)

  1. Create a new search
  2. Wait for search job to finish
  3. 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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions