Skip to main content
Glama

download_logs

Download application logs from Optimizely DXP environments to local storage for offline analysis, with date filtering and background download support.

Instructions

πŸ“Š Download application logs from environment to local storage. BACKGROUND: returns immediately, download continues in background. Supports date filtering (dateFilter: "2025/10/14", "past-7-days") and log type (http, application, all). Use this when you need logs for offline analysis. For quick online analysis, use analyze_logs_streaming() instead (2x faster). Required: environment. Returns downloadId for monitoring with download_status().

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentNoProduction
logTypeNo
containerNameNoOverride default container name
slotNoDownload deployment slot logs instead of production logs. Default: false (production logs only). Set to true to get logs from /SLOTS/SLOT/ path (deployment slot logs during warmup)
dateFilterNoFilter logs by date (e.g., "2025/08/24" or "2025/08")
secondsBackNo⭐ EASIEST: Last N seconds. No date math needed! (e.g., 30)
minutesBackNo⭐ EASIEST: Last N minutes. No date math needed! (e.g., 15)
hoursBackNo⭐ EASIEST: Last N hours. No date math needed! (e.g., 6)
daysBackNo⭐ EASIEST: Last N days. No date math needed! (e.g., 7 for last week)
weeksBackNo⭐ EASIEST: Last N weeks. No date math needed! (e.g., 2)
monthsBackNo⭐ EASIEST: Last N months. No date math needed! (e.g., 3)
yearsBackNo⭐ EASIEST: Last N years. No date math needed! (e.g., 1)
startDateNoStart date (e.g., "2025/10/01"). Can use alone - endDate defaults to NOW. Format: "YYYY/MM/DD" or "YYYY-MM-DD"
endDateNoEnd date (e.g., "2025/10/08"). Can use alone - startDate defaults to 7 days before. Format: "YYYY/MM/DD" or "YYYY-MM-DD"
startDateTimeNo⚠️ ADVANCED: ISO 8601 start datetime. Can use alone - endDateTime defaults to NOW. For simpler filtering, use daysBack/hoursBack instead. (e.g., "2025-09-15T01:00:00-05:00")
endDateTimeNo⚠️ ADVANCED: ISO 8601 end datetime. Can use alone - startDateTime defaults to 7 days before. For simpler filtering, use daysBack/hoursBack instead. (e.g., "2025-09-15T01:30:00-05:00")
downloadPathNoWhere to save log files
previewOnlyNoShow download preview without actually downloading
skipConfirmationNoSkip confirmation preview (WARNING: downloads immediately without preview). Default: false - always show preview
incrementalNoUse smart incremental download (skip unchanged files). Default: true
forceFullDownloadNoForce full download even if files exist locally. Default: false
monitorNoDXP-3: Enable real-time progress monitoring during download. Shows progress updates every 10 seconds or 50 files. Default: false (opt-in)
backgroundNoDXP-3: Start download in background and return immediately with downloadId. Use download_status({ downloadId, monitor: true }) to watch progress. Default: false (blocking download)
projectNameNo
projectIdNo
apiKeyNo
apiSecretNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JaxonDigital/optimizely-dxp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server