Skip to content

Audit Logs

Audit Logs provide a complete, non-editable history of administrative actions and platform events in InsightMaps. Every significant action is recorded with timestamp, user, and details for security monitoring, troubleshooting, and accountability.

Overview

Audit Log Capabilities:

  • Complete activity tracking: Every admin action logged
  • Advanced filtering: Entity type, action, date range, quick presets
  • Detail view: Click any log entry to see full details with before/after values
  • Related activity: View other actions on the same entity
  • Summary statistics: Real-time counts for total logs, today's activity, errors, and active users
  • CSV export: Download filtered logs for external analysis
  • URL state sync: Filters persist in the URL for bookmarking and sharing

Access Audit Logs

Location: InsightMaps Console > Audit Logs

How to Open:

  1. Log in to console.insightmaps.app
  2. Navigate to Audit Logs in left sidebar
  3. Audit log table and filters appear

Permission Required: Admin role


Understanding Audit Log Entries

Log Entry Fields

Each audit log entry contains:

FieldDescriptionExample
TimestampWhen the action occurredShown as relative time (e.g., "2 hours ago") with full date on hover
UserWho performed the action[email protected] (or "System" for automated actions)
ActionWhat was doneCREATE, UPDATE, DELETE, LOGIN, PUBLISH
Entity TypeWhat was affecteduser, category, layer, service, settings
Entity IDSpecific item identifierNumeric ID
IP AddressSource IP (desktop view)203.45.123.89
Old ValuesPrevious state (JSON)Field values before the change
New ValuesNew state (JSON)Field values after the change

Entity Types

Entity TypeDescription
AuthAuthentication events (login, logout)
UserUser management actions
CategoryCategory creation, editing, publishing
LayerLayer configuration changes
ServiceData source connections and sync
Preset ViewSaved views and bookmarks
SettingsSystem settings modifications

Action Types

Authentication:

  • LOGIN: Successful user login
  • LOGIN_FAILED: Failed login attempt
  • LOGOUT: User logout
  • SIGNUP: New user registration
  • OAUTH_LOGIN: OAuth authentication (Google, GitHub)

Data Management:

  • CREATE: New item created
  • UPDATE: Configuration changed
  • DELETE: Item removed
  • PUBLISH: Category or layer published
  • UNPUBLISH: Category or layer hidden
  • SET_DEFAULT: Default setting changed

Service Operations:

  • DISCOVER: Service discovery executed
  • SYNC: Service metadata synchronized
  • BULK_SYNC: Multiple services synchronized
  • IMPORT_LAYERS: Layers imported from file

Bulk Operations:

  • BULK_ASSIGN: Bulk layer assignment
  • BULK_UPDATE: Bulk configuration changes
  • BULK_DELETE: Multiple items deleted
  • DELETE_ALL: All items in a category deleted
  • DELETE_ACCOUNT: User self-deleted their account

Filtering Audit Logs

Filter by Entity Type

  1. Click the Entity Type filter dropdown
  2. Select a type (Auth, User, Category, Layer, Service, Preset View, Settings)
  3. The log table updates to show only matching entries
  4. Select "All Types" to clear the filter

Filter by Action

  1. Click the Action filter dropdown
  2. Select an action (LOGIN, CREATE, UPDATE, DELETE, PUBLISH, etc.)
  3. The log table updates to show only matching entries

Filter by Date Range

  1. Set From Date using the date picker
  2. Set To Date using the date picker
  3. Logs are filtered to the specified range
  4. Clear dates to show all time periods

Quick Filter Presets

Four quick filter buttons are available above the log table:

PresetWhat It Shows
TodayLogs from the current date
ErrorsFailed login attempts (LOGIN_FAILED)
AuthAuthentication entity type logs only
DeletionsDELETE action logs only

Each preset is toggleable — clicking again clears the filter. Presets are available on both desktop and mobile.

Combine Filters

Filters can be combined for precise queries:

  • "Failed logins today": Entity Type = Auth + Action = LOGIN_FAILED + Preset = Today
  • "Layer publishing this month": Entity Type = Layer + Action = PUBLISH + Date Range = this month
  • "All bulk operations": Action = BULK_DELETE or BULK_SYNC

Active Filter Indicators

  • Active filters appear as dismissible badges below the filter bar
  • Click the X on a badge to remove that filter
  • "Clear all filters" button removes all active filters

URL State Synchronization

All filter values sync to URL query parameters (entityType, action, fromDate, toDate, page, pageSize). This allows bookmarking filtered views and sharing links with other administrators.


Audit Log Detail View

Clicking the View button on a log entry (or the eye icon on mobile) opens a detail dialog with complete information.

Core Information

  • Full action name with color-coded badge
  • Entity type and entity ID
  • Precise timestamp
  • Username and user ID
  • IP address
  • User agent (browser/device information)

Change Details

The detail view displays changes differently based on the action type:

UPDATE actions (old and new values exist):

  • A changes table showing each modified attribute with:
    • Attribute name
    • Previous value (highlighted in red)
    • New value (highlighted in green)
    • Change type: added, removed, or modified

CREATE actions (new values only):

  • "Created With" section showing the initial field values as formatted JSON

DELETE actions (old values only):

  • "Deleted Data" section showing the removed field values as formatted JSON

BULK_SYNC actions:

  • Special display with summary cards:
    • Total services count
    • Succeeded count (green)
    • Failed count (red)
    • Total layers synced (blue)
  • Failed services table with Service ID, Service Name, and error details

Below the change details, the dialog shows up to 5 related log entries for the same entity. Each related entry shows:

  • Action badge
  • Username
  • Relative timestamp
  • Click to navigate to that log entry

Summary Statistics

Four summary cards appear at the top of the Audit Logs page (hidden on mobile):

CardDescription
Total LogsTotal count of logs matching current filters
TodayCount of logs created today
Errors/DeletesCount of DELETE actions and LOGIN_FAILED events
Active UsersCount of unique users in the current page

Pagination

Page Size

Choose from three page sizes:

  • 20 items per page (default)
  • 50 items per page
  • 100 items per page

Desktop:

  • First page, Previous, Next, Last page buttons
  • "Page X of Y" indicator
  • "Showing X-Y of Z" summary text

Mobile:

  • Previous and Next buttons
  • Summary text showing range and total

Exporting Audit Logs

CSV Export

  1. Apply desired filters to narrow the results
  2. Click the Export CSV button (Download icon)
  3. A CSV file downloads automatically

CSV Filename: audit-logs-[YYYY-MM-DD].csv

CSV Columns: Timestamp, User, Action, Entity Type, Entity ID, IP Address, User Agent, Old Values, New Values

Note: The export includes the current page of filtered results. For large exports, use date range filters to export in monthly batches.

Permission: Export requires admin permissions and is disabled in demo mode.


Log Table Display

Desktop View

A full table with columns:

  1. Timestamp — Relative time with full date tooltip
  2. User — Username or "System"
  3. Action — Color-coded badge (green for create, blue for update, red for delete, violet/amber for auth, cyan for sync)
  4. Entity — Entity type and ID (clickable to filter by type)
  5. IP Address — Shown on larger screens, with user agent tooltip
  6. Details — "View" button (only if the entry has change data)

Mobile View

A card-based layout showing:

  • Action badge and timestamp
  • User and entity information
  • Eye icon to open detail dialog

Troubleshooting

"Audit logs not showing recent events"

Causes:

  • Filters too restrictive
  • Date range excludes today
  • Page not refreshed

Solutions:

  • Clear all filters using the "Clear all" button
  • Verify date range includes the current date
  • Refresh the page

"Cannot export audit logs"

Causes:

  • Insufficient permissions
  • Demo mode active

Solutions:

  • Verify you have admin permissions
  • Export is disabled in demo mode

"Missing expected log entry"

Causes:

  • Active filters hiding the entry
  • Action did not complete successfully
  • Viewing a different page

Solutions:

  • Clear all filters
  • Verify the action actually completed
  • Check other pages using pagination

Integration with Other Console Features

Works With

User Management:

  • View all actions by a specific user
  • Track role changes and account modifications
  • Monitor login history

Data Sources:

  • Track service discovery and sync operations
  • Review layer publishing history

Settings:

  • Log all system configuration changes
  • Track default basemap and theme changes

Summary

Audit Logs provide accountability and visibility:

  • Complete Tracking: Every admin action logged with user, timestamp, and details
  • Advanced Filtering: Entity type, action, date range, and quick presets
  • Detail View: Full before/after change comparison with related activity
  • Summary Statistics: Real-time counts for total logs, today's events, errors, and active users
  • CSV Export: Download filtered logs for compliance and analysis
  • URL Bookmarking: Filter state persists in the URL for sharing

Key Points:

  • Review failed login attempts regularly for security
  • Use quick filter presets for common audit tasks
  • Export logs periodically for long-term archival
  • Click "View" on any entry to see the full change details
  • All logs are non-editable and non-deletable for integrity