Oms API GET past job log - openmpp/openmpp.github.io GitHub Wiki
GET past model run job log file name and content.
This method reads past model run log file and return it as array of strings. First line is a log file name and the rest is the log file content.
To find log file location it does:
- find past model run JSON file by
year_month, useromsinstance name and submission time stamp injob/past/yyyy_mmfolder; - read model run JSON to get
LogPath, it expected to be absolute path; - read log file, retrun empty
[]array if file not found.
The method is available only if oms started with "global admin" privileges, for example:
oms -l localhost:4040 -oms.JobDir job -oms.AdminAll
Method:
GET /api/admin-all/job/past/folder/:path/user/:user/stamp/:stamp/log
Arguments:
:path - (required) year and month past job folder in `yyyy_mm` format e.g.: `2026_01`
:user - (required) `oms` instance name, e.g.: `alice_4042`
:stamp - (required) model run submission time stamp, e.g.: `2026_01_29_02_01_48_112`
Call examples:
http://localhost:4040/api/admin-all/job/past/folder/2026_01/user/alice_4042/stamp/2026_01_29_02_01_48_112/log
Example:
[
"RiskPaths.2026_01_29_02_02_24_114.console.log",
"2026-01-29 02:02:24.172 RiskPaths",
"2026-01-29 02:02:24.175 RiskPaths",
"2026-01-29 02:02:24.175 RiskPaths",
"2026-01-29 02:02:24.177 RiskPaths",
"2026-01-29 02:02:24.383 [0] Model version : 3.0.0.0",
"2026-01-29 02:02:24.383 [0] Model created : 2025-11-06 19:50:10.842",
"2026-01-29 02:02:24.384 [0] Model digest : 43976e100f44b6c4e2968fc74442a745",
"2026-01-29 02:02:24.384 [0] OpenM++ version: Development version (build from source code)",
"2026-01-29 02:02:24.384 [0] OpenM++ build : Windows 64 bit Release MPI",
"2026-01-29 02:02:24.384 [0] Parallel run of 4 modeling processes, 2 thread(s) each",
"2026-01-29 02:02:24.385 [0] Model build : Windows 64 bit Release",
"2026-01-29 02:02:24.385 [0] Prepare fixed and missing parameters",
"2026-01-29 02:02:24.385 [0] Run: 2026_01_29_02_02_24_114",
"2026-01-29 02:02:24.402 [2] Model version : 3.0.0.0",
"2026-01-29 02:02:24.402 [1] Model version : 3.0.0.0",
"2026-01-29 02:02:24.402 [2] Model created : 2025-11-06 19:50:10.842",
"2026-01-29 02:02:24.402 [1] Model created : 2025-11-06 19:50:10.842",
"2026-01-29 02:02:24.403 [2] Model digest : 43976e100f44b6c4e2968fc74442a745",
"2026-01-29 02:02:24.403 [1] Model digest : 43976e100f44b6c4e2968fc74442a745",
"2026-01-29 02:02:24.403 [2] OpenM++ version: Development version (build from source code)",
"2026-01-29 02:02:24.403 [1] OpenM++ version: Development version (build from source code)",
"2026-01-29 02:02:24.403 [1] OpenM++ build : Windows 64 bit Release MPI",
"2026-01-29 02:02:24.442 [3] Model build : Windows 64 bit Release",
................................
................................
................................
................................
"2026-01-29 02:02:24.611 [3] member=4 Cleanup entity tables - finish",
"2026-01-29 02:02:24.612 [3] member=4 Completed.",
"2026-01-29 02:02:26.251 [0] Writing into aggregated output tables, run: 201",
"2026-01-29 02:02:27.343 [2] Process peak memory usage: 7.54 MB",
"2026-01-29 02:02:27.343 [1] Process peak memory usage: 7.51 MB",
"2026-01-29 02:02:27.399 [3] Process peak memory usage: 7.23 MB",
"2026-01-29 02:02:27.559 [0] Process peak memory usage: 9.92 MB",
"2026-01-29 02:02:27.562 [2] Done.",
"2026-01-29 02:02:27.562 [1] Done.",
"2026-01-29 02:02:27.562 [3] Done.",
"2026-01-29 02:02:27.562 [0] Done."
]