Last Log for Confluence comes with a dedicated REST API. The following features can be used through the API:
- View all log files - specify various parameters and view exactly the output you need.
- View thread dump - if you are a Confluence system administrator you can quickly access the current thread dump.
- Kill a thread - with great power comes great responsibility - Confluence system administrators can even kill a thread.
View log files
Available for Confluence administrators and system administrators
List all available log files
<base>/rest/lastlog/1.0/log
View a specific log file {filename}
<base>/rest/lastlog/1.0/log/{filename}
Parameters
Parameter name | Input |
---|---|
maxEntries | Number of lines (integer) |
reverse | Invert order of output (boolean) |
query | Search string (string) |
regex | Search by regex (boolean) |
exclude | Exclude search string (string) |
casesensitive | Search case sensitive (boolean) |
An example link can be found after executing a custom search.
Example
<base>/rest/lastlog/1.0/log/atlassian-confluence.log?query=INFO&maxEntries=500&exclude=&reverse=true®ex=true&casesensitive=true
Show thread dump
Only available for Confluence system administrators
<base>/rest/lastlog/1.0/threads
Kill a thread
Only available for Confluence system administrators.
Be careful. Killing. the wrong thread can seriously harm your instance!
<base>/rest/lastlog/1.0/threads/kill/{id}