LogoLogo
ReleasesHomepageBlogSlack
3.0
3.0
  • Welcome
  • Concept
  • SQLWATCH Database
    • Requirements
      • Permissions
      • Performance Overhead
      • Storage Utilisation
    • Installation
      • Install with dbatools
      • Install with SqlPackage
      • Install with SSMS
      • Deploy from source code
      • Optional Components
      • Upgrade
      • Removal
      • Downgrade
    • Configuration
    • Known Issues
      • Collation conflict
      • Database drift
      • Login failed error when running disk logger
      • Deadlock when creating database
    • Notifications
      • Checks
      • Actions
      • Reports
      • How To
        • Add or modify check
        • Add or modify action
        • Add or modify report
      • Process Flow
    • Large Environments
  • Central Repository
    • Requirements
      • Performance overhead on the remote instance
      • Permissions
    • Installation
      • Removal
      • Upgrade
    • Configuration
    • Known Issues
  • Power BI Dashboard
    • Requirements
      • Permissions
    • Installation
    • Configuration
    • Known Issues
      • Power BI Load Errors
    • Performance
  • Grafana Dashboard
    • Requirements
    • Installation
    • Configuration
  • Azure Log Analytics Dashboard
    • Concept
    • Requirements
    • Installation
    • Configuration
  • Design Decision
    • Relations
    • Trend Tables
    • Data Types
      • Real Type
    • Primary Keys
    • Data Compression
    • Configuration Items
    • Using Apply instead of Join
  • Reference
    • Data-Tier Application Package
  • Integrations
    • Send notifications to Slack and Teams
    • dbachecks
  • FAQ
    • How do I check if SQLWATCH is running OK?
    • I am not seeing any data in Power BI
    • Can I modify default checks?
    • The app_log is growing fast
Powered by GitBook
On this page
  • Stop logging INFO messages.
  • Reduce retention period.
  • Truncate it.

Was this helpful?

  1. FAQ

The app_log is growing fast

If your [dbo].[sqlwatch_app_log] table is growing fast, there a few things you can try.

Stop logging INFO messages.

Before version 2.4 INFO messages were being logged by default. INFO are informational messages, similar to highly verbose logging. This was changes in version 2.4 and INFO are not logged by default, only WARNING and ERROR.

You can changes this behaviour in the global config:

  UPDATE [dbo].[sqlwatch_config]
  SET [config_value] = 0 -- 1 log INFO, 0 do not log INFO
  WHERE [config_id] = 7

Reduce retention period.

Before version 2.4 the default retention period for the app_log table was 30 days. This changed to 7 days in the 2.4. You can set retention period for the app_log table in the global config table:

  UPDATE [dbo].[sqlwatch_config]
  SET [config_value] = 7 --retention days. 
  WHERE [config_id] = 1

Please note that before the version 2.4 the retention was not batched up, meaning that the delete was executed in one transactions. If your app_log table is large and you are reducing retention significantly in version < 2.4 it may take a while and may also blow the transaction log. If you are on < 2.4 you may want to truncate the table.

Truncate it.

Before version 2.4 the table's retention was not batched up meaning large deletions would be executed in a single transaction. This could take a long time and could also blow the transaction log. It is perfectly safe to truncate the app_log table.

truncate table [dbo].[sqlwatch_app_log]

PreviousCan I modify default checks?

Last updated 4 years ago

Was this helpful?