Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Administrator: logs
Administrator: logs
This webhook can be used daily to receive log lines for actions performed by the various administrator logins the day before. The webhook runs every night and covers the period "Yesterday". Under "Administrators" on the webhook you choose which administrators to include: "All administrators" or one or more specific ones, including "Super administrator". One line is sent per log entry. If there are no log entries in the period, the webhook is not sent. Example of JSON that can be sent: |
[
[adminLogLine_begin]
{
"logEntryId": [logEntryId],
"logTypeId": [logTypeId],
"logTypeName": "[logTypeName]",
"logFieldId": [logFieldId],
"logTimeUnixtimestamp": [logTimeUnixtimestamp],
"logTimeISO8601": "[logTimeISO8601]",
"logAdminUserId": [logAdminUserId],
"logAdminUserName": "[logAdminUserName]",
"logIp": "[LogIp]",
"logChanges": [
[logChanges_begin]
{
"logExtraText": "[logExtraText]",
"logFieldChanged": "[logFieldChanged]",
"logFieldChangedFrom": "[logFieldChangedFrom]",
"logFieldChangedTo": "[logFieldChangedTo]"
}[lineBreak]
[logChanges_end]
]
}[lineBreak]
[adminLogLine_end]
]
![]() |
The period covers yesterday and up to the time of the run. Logs from the first hours after midnight can therefore appear in two consecutive runs. |
![]() |
The replacement codes for the log entry must be written exactly as shown, with upper and lower case letters, and [LogIp] has a capital L. Names and values in the changes are inserted as they are, so quotation marks or line breaks in a value can break the JSON. |
The replacement codes above will be replaced with the following data when the specific webhook runs:
|
