DependencyTrack / dependency-track

Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
https://dependencytrack.org/
Apache License 2.0
2.58k stars 541 forks source link

Massive log monitoring from database #4101

Closed sga-solita closed 2 weeks ago

sga-solita commented 2 weeks ago

Current Behavior

We have been running Dependency Track for about a month and just now I can see that there are a LOT of log entries in Application Insights from the database queries image

This is causing our Log Analytics Workspace to be responsible for most of our costs: image

How do I reduce or disable database query output? I did search through the documentation, but was unable to find something specifically for this problem.

Steps to Reproduce

  1. Use Dependency Track
  2. Check logs

Expected Behavior

Possibility to reduce or disable log output from database queries.

Dependency-Track Version

4.11.7

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

Google Chrome

Checklist

nscuro commented 2 weeks ago

DT doesn't log any queries by default. This looks like you configured Postgres to log queries in Azure, and you're using Azure's log analytics service on top of that.

You'll need to check your Azure config to disable that.

sga-solita commented 2 weeks ago

@nscuro I did think of that possibility, but the cloud_RoleName is DT backend (redacted here, but screenshot for clarity) image

nscuro commented 2 weeks ago

DT doesn't know about any cloud and roles within it. Your Postgres database has verbose query logging enabled, but that configuration is entirely on your side and nothing DT can change or even see.

sga-solita commented 2 weeks ago

I just tried to disable Application Insights for my backend (DT). Logs stopped coming. I also checked server log configuration for my database, and it has never been enabled.