Create logbooks to store custom logs for each node

Logbooks allow you to record custom data generated during the flow runtime. The schema of the Logbook needs to be defined before you can start using it within a Flow. In addition to the data points to be stored as part of the logbook, you can also define the file rotation & file shipping policies.

Logbooks can periodically be shipped to an SFTP or AWS S3 location.



The use of 'Local' as a file destination for logbooks is no longer supported and is deprecated for new logbook configurations. Existing logbooks that are already configured with 'Local' as file destinations will continue to be supported until updated, but we recommend switching to S3 or SFTP.

To capture data, you need to configure data points in Logbook. Following are the possible tasks that you can perform for Logbooks:

  1. Configure New Logbook
  2. Declare attributes to be captured during runtime
  3. Configure File Type and set Delimiter
  4. Configure Rotation Policy and File Destination
  5. Logbook Locking
  6. Map Logbook to Flow


Timezone for Logs in Logbooks

The same timezone configured in the Tenant Settings is applicable to the logs within the Logbooks.

Configure New Logbook

  1. Navigate to Tools > Logbooks



This option is visible only if the logbooks feature is enabled for your tenant in the admin portal. You will receive email notifications when the logbooks feature is enabled or disabled.

  1. On the Logbooks page, click Add Logbook.
  2. On the Configure New Logbook page, enter the Name of the logbook.
  3. Enter Description of the logbook for easy identification.

Basic Details of the logbook

  1. Enable the logbook that you have just created.



If the logbooks feature is disabled, it does not delete any existing logbooks. When the feature is re-enabled, you will continue to see them with the latest configurations. The logging of data will stop on the day the feature is disabled and resume on the day when it is re-enabled.

Declare Attributes to capture during runtime

Custom attributes are used to capture log values during flow runtime. Click ADD ATTRIBUTE to add an attribute textbox. You can change the order of the attributes using up and down arrow keys; use the corresponding 'x' to remove the attribute from the list of custom attributes.

We now allow underscores in the custom attribute names of logbooks. User can define the custom attributes with underscores for new logbooks and existing logbooks as well. Any changes made to the current logbook structure, will create a new file.


List of custom attributes

Configure File Type and Set Delimiter

In the File Settings section, define the file type for the logbook and the prefix of each file generated as declared in the rotation policy.


File Settings

FILE TYPESelect the logbook file type to save the data. You can save the logbook in .CSV or .TXT format.
FILE NAME PREFIXThis prefix is added to the logbook files when files are generated.

E.g: APILOGBOOK20181219123906747.txt



From 6.2.0, No spaces are allowed in the 'FILE NAME PREFIX' field for new configurations. All the old configurations will continue to work as is.


Logbook names

The format of the log file is based on the prefix supplied, along with the date and time of the file generated.

For example, if the file generated is API20181218112337213.txt, then API is the prefix, 20181218 is the date and 112337213 is the time in hours, minutes and seconds

Select a Delimiter

Delimiter helps you to separate your data based on characters.


Please select your Delimiter carefully to avoid conflict with the actual data. Data points are not enclosed within quotes limiting you from making a distinction between the delimiter and the actual data in some cases if the delimiter is likely to be a part of your content.

Tab, Semicolon, Comma, Space, OthersSelect one of the delimiters types to place between data (separator).
Include attributes as column header in the fileCheck this option of include the customer attribute as headers of the data being captured in the logbook.
Add end of fileCheck this option and enter the content or variable to be placed at the end of the file.

E.g: Total: $(count_of_records) or End of Records.
Password protect the fileCheck this option to create password-protected logbooks. You are required to enter a password in the textbox provided.

Hereafter, log files will be zipped and password protected with the passcode provided.

Configure Rotation Policy and File Destination

The Rotation Policy is used to schedule logbook file generation. A new file is generated if the file exceeds maximum records per file, or the duration of each cycle is reached. You can now provide an email / a notify URL to get notifications on the file exports scheduled on Logbooks. The notification is triggered at the end of each export cycle, relaying the outcome of the file export process.

Under 'File Destination' you can configure Destination path to drop the log file once it is created, You can define the Notification path to receive a notification when a logbook is created and placed at the selected destination (SFTP/AWS S3).



  • Local storage option stores the data at Webex Connect's end. The standard retention policy for local storage is 30 days.
  • The use of 'Local' as a file destination for logbooks is no longer supported and is deprecated for new logbook configurations. Existing logbooks that are already configured with 'Local' as file destinations will continue to be supported until updated, but we recommend switching to S3 or SFTP.

File Destination is a toggle button. You can either enable or disable it based on your requirements. If it is disabled, the Logbook is not exported to any location.

Setting Logbook File destination is now optional, if a logbook is created for Embedded BI reporting. Users are no longer required to mandatorily choose a โ€˜File destinationโ€™ while creating a Logbook for Embedded BI.

A dropdown option "Select Time Zone (the text is indicative only)" adjacent to the "Time in Hours" field helps the user define the time with the time-zone in which he would prefer doing the rotation policy. The rotation policy refers to time when you want to export or load the logbook on SFTP, S3 file destination.

This change will not impact the existing logbooks automatically without the user changing the existing time zone. Also, the time zone selection is only shown when the cycle duration selected are daily or hourly interval as per the tenant time zone settings, but not as per the server time zone.

The tenant account timestamp will also be displayed below the cycle duration field as text.



After this deployment the default time zone will be displayed as UTC for the existing logbooks (can be changed manually, if required) and for any new logbook created by the user you will get the โ€œSelect Time Zoneโ€ option (without any default selection).



The FTP feature is no longer supported for new configurations, because Data sent via FTP is vulnerable to sniffing, spoofing, and brute force attacks, among other basic attack methods.

The feature will work as is for the existing customers.

Max Records per FileDefine the maximum number of records per file. A new file is generated once the file reaches the defined threshold.
Cycle DurationApplicable only when cycle duration is selected as Interval - Format (HH:MM).
Cycle Duration - DailyContains the details of duration in hours along with the timezone at which the file is generated.
Cycle Duration - HourlyContain the details of duration in minutes along with the timezone at which the file is generated.
Add empty file when no records are foundIf checked, an empty file is generated, even in case of no transaction ( based on cycle duration).

Assume that you have configured a schedule in the logbooks and the time zone selected in Rotation Policy is included under DST (Day light saving time zone). In this case, there is a possibility that the scheduled file delivery can be skipped because of DST adjustment in the time zone.

For instance, say you are in Ireland, where daylight savings events occur at 3:00 AM, GMT. If you have a logbook schedule that initiates everyday at 3:15 AM, then on the day of the beginning of daylight savings time, the schedule will be skipped, since, 3:15 AM never occurs that day. If you have a schedule that triggers every 15 minutes of every hour of each day, then on the day and time that daylight savings ends, there will be an hour of time for which no schedule executes. This is because, when 3:00 AM arrives, it will become 1:00 AM again, however all of the scheduling during the 1:00 AM hour has already occurred, and the triggerโ€™s next initiation time was set to 3:00 AM. This is why, for the next hour, no schedule execution will occur.

File Destination

Choose a destination to place the log file once it is generated as per the settings above.

DestinationThe destination to store the log file once the logbook is generated. You can set the destination to 'SFTP or AWS S3'.

You can upload the private key (example: AWS based Open SSH key files like rsa512.ppk, rsa256.ppk, ecdsa521.ppk, ecdsa384.ppk, ecdsa256.ppk, ed25519.ppk, ECDSAprivate.ppk, EDDSA255private.ppk) for SFTP configuration, when you select the File Destination as SFTP using the Upload button.
FILE ROTATION NOTIFY URLA notification is sent at the defined URL when a new log fine is generated. If an invalid URL is passed in API request or via a variable, then such request will not be considered eligible for retries.
Notify on EmailA notification is sent at the provided email address when a new log file is generated.


Logbooks Access Restrictions

A read-only user is not allowed to create new logbooks or manage any existing logbooks. However, a read-only user is allowed to download logbook files from the platform.

Logbook Locking

Users can now lock logbooks created by them to restrict other users from accessing, editing, or deleting their logbooks. Only the user who created the logbook and the owner of the tenant can lock the logbook. The lock is aimed at restricting unintended editing of logbook schema, and/or viewing, download and deletion of the logbook by other users. The locked logbooks will be available for use within flows (i.e., adding data to logbooks) for all platform users.

The user (i.e. the creator of the logbook) and owner of the tenant can select "Lock/Unlock" option from the action dropdown to lock/unlock the logbook.

Once a logbook is locked, the lock icon will appear adjacent to it and other users will only get the option to โ€œViewโ€, instead of Edit/Delete/View.

Once you click View button, the logbook schema will open in View (read-only) mode where you cannot make any modifications or add/delete any attributes such as Name, Description, Custom Attributes etc. Whereas the creator and owner of the tenant will have full access of the logbook.



There will be no such restriction on logbooks attaching to flows.

Some of the fields such as File Destination Details which mentions destinations such as SFTP, S3 where the logbook is to be exported, will also be hidden or shown in encrypted format as it contains key value pairs (personal info such as user name, pwd, secret key, S3 access key etc).

Once locked, logbook will not be accessible by any user except the owner unless unlocked. Only the owner of the tenant can "unlock" the logbook, other than the user who created it.

Map Logbook to Flow

After you have created a logbook, you must map it to the flow in which you want to use the logbook.

  1. Open the required flow.
  2. Go to Flow Settings.
  3. Go to the Custom Logs tab.
  4. Select the logbook that you want to add to the flow in the Logbook dropdown list.

Mapping Logbook to Flow

  1. Click Save.

If the logbooks feature is disabled for your tenant, you can still see any existing mappings in this tab, along with a message โ€œLogbook is disabled for the tenant. Flow runtime data will not be logged into the mapped logbook. To enable logbook please reach out to your account manager.โ€



If you do not have any logbooks mapped to flows, this tab is not visible.

Role-Based Access for Logbooks

The tenant owner has the ability to select the reports which are accessible by the users on the tenant.

  1. From the User Profile menu select Teammates.
  2. Click Edit next to the required user.
  3. In the Edit User screen, within the BI Reporting section, you can do the following:
    1. Enable/Disable View Reports
    2. Enable/Disable Edit Mode
    3. Select the required logbook(s) from Reports Accessible dropdown. Only the reports which are provisioned for the selected user are visible in this dropdown.

Logbook Error Codes

For more information about logbook error codes, refer this link.

Voice Channel Header Descriptions

Header NameHeader Descriptions
Transaction IDThis is the transaction id of the node
SourceTIDUnique Transaction of the event/channel/integration that triggered the flow/rule
Call TIDUnique transaction ID of the inbound/outbound node
Correlation IDCorrelation Id configured for reference in the flow/API
SourceNumber which has triggered the call
ChannelChannel name which is used in the transaction. In this case it will be voice
AssetThe number from which the call is made. This is the asset purchased or added to your Webex Connect tenant
Asset NameNA for voice
Event DescriptionThe description of the event that triggered the channel
DateDate on which the transaction was triggered
TimeTime on which the transaction was triggered
TimezoneTimezone of the connect tenant deployment
MSISDNThe customer number to which the call is made
FromNumberThe number from which the outbound call is initiated
ToNumberThe number or batch of numbers to which the outbound call is made
Trombone ReleaseWhen the party B (agent) exits the call.
Trombone ConnectedWhen the Webex Connect platform sends an outbound call to the customer and the customer asks to talk to an agent
DurationCall duration in seconds
Call TypeDenotes if the call type is Inbound or Outbound or Trombone
FlowNameName of the flow
FlowIdUnique id of the flow
OfferedAtThe timestamp when the call is initiated
AnsweredAtThe timestamp of when the call was answered
EndedAtThe timestamp of when the call was ended
MachineDetectedThis denotes if the call was answered by Voicemail. If Voicemail is detected then value will be 1.
CallDurationContains the call duration in seconds
CauseCodeThis contains the call disconnect cause code. Click here for all the cause codes
CauseDescriptionThis contains the call disconnect reason. Click here for all the cause codes