Any questions

We are happy to help!

Question about Gecko Booking?

If you are unsure whether Gecko Booking is right for you, or if you have other questions, we would love to hear from you!

All good!
Please enter your name.
All good!
Please enter your email.
All good!
All good!
Please enter your question.

Fields marked with an * are required


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:

  • [adminLogLine_begin][lineBreak][adminLogLine_end] is used to repeat data for each log entry, where the replacement codes below can be used:
    • [logEntryId] is replaced with the unique Id of the log entry.
    • [logTypeId] and [logTypeName] are replaced with the Id and name of the type of action, for example "Customer - Create".
    • [logFieldId] is replaced with the Id of what the action applies to, for example the customer's Id for a customer log.
    • [logTimeUnixtimestamp] is replaced with the time of the action as a timestamp (the number of seconds since 1 January 1970).
    • [logTimeISO8601] is replaced with the time of the action in ISO 8601 format.
    • [logAdminUserId] and [logAdminUserName] are replaced with the administrator's Id and user name. For Super administrator the Id is 0 and the name is "Super-admin".
    • [LogIp] is replaced with the IP address the action was performed from.
    • [logChanges_begin][lineBreak][logChanges_end] is used to repeat data for each change in the log entry, where the replacement codes below can be used. If the log entry has no changes, the list is empty:
      • [logExtraText] is replaced with extra text for the change.
      • [logFieldChanged] is replaced with the name of the field that was changed.
      • [logFieldChangedFrom] is replaced with the value before the change.
      • [logFieldChangedTo] is replaced with the value after the change.
    [lineBreak] gives a comma between the lines, but not after the last one.

 


Try a Free and Non-Binding Demo of Gecko Booking & Administration

Fill out the form, and you will receive a demo as soon as possible.

All good!
Please enter the company name.
All good!
Please enter your phone number.
All good!
Please enter your name.

Fields marked with an * are required