Open Closed

Disable Audit Logging for Health Checks #5013


User avatar
0
bozkan created

Hi,

How can we disable audit logging for health checks added like;

public void ConfigureServices(IServiceCollection services)
{
    services.AddHealthChecks()
        .AddSqlServer(Configuration["Data:ConnectionStrings:Sql"])
        .AddRedis(Configuration["Data:ConnectionStrings:Redis"]);
}
  • ABP Framework version: v4.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

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

    hi

    What kind of the logs you got now?

  • User Avatar
    0
    bozkan created

    hi

    What kind of the logs you got now?

    BrowserInfo HttpMethod Url kube-probe/1.22 GET /health/ready kube-probe/1.22 GET /health/live

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can you share a screenshot?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    
    Configure<AbpAspNetCoreAuditingOptions>(options =>
    {
        options.IgnoredUrls.AddIfNotContains("/health");
    });```
    
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09