tollgate export
Exports audit logs in various formats for compliance reporting, SIEM integration, and analysis.Usage
Options
| Option | Description | Default |
|---|---|---|
-f, --format <format> | Export format: json, jsonl, csv, or cef | jsonl |
-o, --output <path> | Output file path (omit for stdout) | stdout |
--since <date> | Only include records since this date (ISO format) | - |
--until <date> | Only include records until this date (ISO format) | - |
-s, --server <name> | Filter by server name | - |
-n, --limit <count> | Maximum number of records to export | - |
--risk <level> | Filter by risk level | - |
--no-redact | Include original (non-redacted) data | - |
--audit-path <path> | Custom path for audit database | ~/.dotset/tollgate.db |
Formats
JSON
Complete JSON array of all records:JSON Lines (Default)
One JSON object per line, ideal for streaming:CSV
Comma-separated values for spreadsheet analysis:CEF (Common Event Format)
For SIEM integration (Splunk, Datadog, etc.):Examples
Basic Export
Filtering
Compliance Reporting
SIEM Integration
Risk Levels
| Level | Description |
|---|---|
safe | No-op or informational |
read | Read-only operations |
write | Data modification |
destructive | Potentially irreversible changes |
dangerous | High-risk operations |
Privacy Considerations
By default, tool arguments are redacted in exports. Use--no-redact to include original data:
[!CAUTION]
Using --no-redact may expose sensitive data. Ensure proper access controls on output files.