Oms API GET list of database cleanup logs - openmpp/openmpp.github.io GitHub Wiki

User can reduce database file size by invoking database cleanup script. Console output from cleanup script captured into the log file. This method allow to get the list of database cleanup log files. If error detected during database cleanup then log error flag: IsError: true and log file name extension is .error.txt.

Use GET database cleanup log file method to get the content of the log file by name.

Method:

GET /api/admin/db-cleanup/log-all

Example:

http://localhost:4040/api/admin/db-cleanup/log-all
[
  {
    "BaseName": "RiskPaths.sqlite",
    "LogStamp": "2026_07_29_11_11_05_553",
    "LogFileName": "db-cleanup.2026_07_29_11_11_05_553.RiskPaths.sqlite.console.txt",
    "IsError": false
  },
  {
    "BaseName": "modelOne.sqlite",
    "LogStamp": "2026_08_04_22_03_54_747",
    "LogFileName": "db-cleanup.2026_08_04_22_03_54_747.modelOne.sqlite.error.txt",
    "IsError": true
  },
  {
    "BaseName": "RiskPaths.sqlite",
    "LogStamp": "2026_08_05_22_08_17_202",
    "LogFileName": "db-cleanup.2026_08_05_22_08_17_202.RiskPaths.sqlite.console.txt",
    "IsError": false
  }
]
⚠️ **GitHub.com Fallback** ⚠️