List log lines
/api/logsModbot's own log, newest first. level is the lowest level shown, so Warning gives warnings, errors and fatal lines. text matches the message and the exception, anywhere in either.
Outbound API traffic is not in this table. It is written to modbot_log_http_*.jsonl and to Seq, and there is far too much of it to keep for six months in the database.
Needs the ViewOperationalLog permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Query Parameters
Also accepted as text.
date-timedate-timeint64int32Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/logs"{ "lines": [ { "id": 0, "at": "2019-08-24T14:15:22Z", "level": "string", "message": "string", "template": null, "source": null, "area": null, "exception": null, "properties": "string" } ], "next": null, "now": "2019-08-24T14:15:22Z"}Export list POST
Everybody in a list right now, as a CSV or JSON file. The file leaves Modbot: once downloaded, retention and purge no longer reach it. Every export is recorded with who asked, the format, how many people and which columns. Needs the `ViewMembers` and `ViewProfile` permissions.
Get log filters GET
The sources and areas that have written a line, and how many are stored. Needs the `ViewOperationalLog` permission.