Open Closed

How to implement client id filtering in audit log #6900


User avatar
0
dev@veek.vn created

hi,

I want to create a custom audit log for a client. How can I reuse the audit log on the settings page? Also, I want to filter the audit log by client ID, but the input for getting the audit log does not have a client property. Please help me with that.

ABP Framework version: v.7.3.2 UI Type: Angular Database System: MongoDB Tiered (for MVC) or Auth Server Separated (for Angular): yes Exception message and full stack trace: Steps to reproduce the issue:


7 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    but the input for getting the audit log does not have a client property. Please help me with that.

    Can you share which input class? And what API endpoint?

    Thanks.

  • User Avatar
    0
    dev@veek.vn created

    the api: /api/audit-logging/audit-logs

  • User Avatar
    0
    dev@veek.vn created

    input class:

    export interface GetAuditLogListDto extends PagedAndSortedResultRequestDto {
        startTime?: string;
        endTime?: string;
        url?: string;
        userName?: string;
        applicationName?: string;
        clientIpAddress?: string;
        correlationId?: string;
        httpMethod?: string;
        httpStatusCode?: number;
        maxExecutionDuration?: number;
        minExecutionDuration?: number;
        hasException?: boolean;
    }
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We will add ClientId parameter to query the audit logs in next version.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    https://github.com/abpframework/abp/issues/19346

  • User Avatar
    0
    dev@veek.vn created

    ok thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09