Graylog2 / Graylog2/graylog2-server

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

Open
#26,636 4 comments 0 reactions 1 assignee Claimed by @janheise View on GitHub
needs-input triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

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/?page=0&per-page=1000` should return first 1000 elements for job
`/api/views/search/status/?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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.