ListLogsRequestParameters is missing "from" and "take" for log checkpoint search

Open Beginner friendly
#990 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
api

Research direction

Start with ListLogsRequestParameters and compare it with the log search endpoint documentation and the previous GetLogsRequest usage shown in the report. Add support for the documented from and take parameters, then verify that a log search can retrieve entries from a checkpoint with a requested limit.

Written by the indexing model from the issue text.

Description

bug
Checklist
  • I have looked into the Readme and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.
Description

In the docs for the log search endpoint (as well as the as a previous version of the management SDK) it was possible to do a search from a log checkpoint.

The relevant section of the docs (https://auth0.com/docs/api/management/v2/logs/get-logs)

To search from a checkpoint log ID, use the following parameters:

from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.

take: Number of entries to retrieve when using the from parameter.

I can't find these parameters any more. Using the previous version my code looked like this:

var logs = await client.Logs.GetAllAsync(new GetLogsRequest()
            {
                From = logId,
                Take = 100
            });
Reproduction
  1. Create client
  2. Try to fetch log posts from a certain checkpoint
Additional context

No response

auth0.net version

8.1.0

.NET version

10

Dominant language
C#
Stars
363
Forks
188
Avg merge
9h 55m
Merged PRs (30d)
7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from auth0/auth0.net

All issues in auth0/auth0.net

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.