Knowledge Base

Viewing Sync Logs

Viewing Sync Logs

The Logs page provides a complete audit trail of all synchronization activity.

Accessing Logs

Navigate to Tools → Xero Sync → Logs

Log Entry Information

Each log entry contains:

Field Description
Date When the operation occurred
Type Entity type (contact, invoice, payment)
Blesta ID The Blesta entity ID
Xero ID The corresponding Xero entity ID
Action Operation performed (create, update, void)
Status Success or Error
Message Details or error information

Filtering Logs

By Entity Type

Filter to show only specific entity types:

  • All Types - Show everything
  • Contact - Client/contact syncs only
  • Invoice - Invoice syncs only
  • Payment - Payment syncs only

By Status

Filter by operation outcome:

  • All Statuses - Show everything
  • Success - Successful operations
  • Error - Failed operations

By Date Range

Filter to a specific time period:

  1. Enter From Date
  2. Enter To Date
  3. Click Filter

Reading Log Entries

Successful Sync

2024-01-15 14:32:15 | Invoice | #1234 | abc-123-def | create | Success
Created invoice BL-1234 in Xero

Failed Sync

2024-01-15 14:33:22 | Payment | #567 | - | create | Error
Invoice must be synced before payment can be applied

Update Operation

2024-01-15 14:35:00 | Contact | #89 | xyz-789-ghi | update | Success
Updated contact details in Xero

Entity History

View the complete sync history for a specific entity:

  1. Click on any log entry
  2. Select View Entity History
  3. See all operations for that entity

This is useful for:

  • Tracking when an entity was first synced
  • Seeing all updates made
  • Debugging sync issues

Log Retention

Logs are automatically cleaned up based on your retention setting:

  • Default: 30 days
  • Configurable: 1-365 days
  • Configure in Settings → Log Retention Days

Exporting Logs

Currently, logs can be viewed on-screen. For export:

  1. Use your browser's print function
  2. Or copy/paste relevant entries
  3. Database access available for advanced export

Common Log Messages

Success Messages

Message Meaning
Created invoice X in Xero New invoice synced
Updated contact in Xero Contact details changed
Payment applied to invoice Payment recorded
Contact already exists, linked Found existing Xero contact

Error Messages

Message Cause Solution
Contact not found Client not synced yet Sync contact first
Invoice already voided Xero invoice was voided Check Xero manually
Rate limit exceeded Too many API calls Wait and retry
Authentication failed Token expired Reconnect to Xero
Invalid account code Account not in Xero Check Settings

Clearing Logs

To remove all log entries:

  1. Click Clear All Logs
  2. Confirm the action
  3. All log entries are deleted

Warning: This cannot be undone. Consider your retention needs before clearing.

Please rate this article to help us improve our Knowledge Base.

0 0