Hostxpeed
Login Get Started →
Control Panel

How to Download Logs in HestiaCP

4 min read
22 views
Jun 10, 2026

Prerequisites

Before downloading logs, make sure you have:

  • SSH access to your VPS
  • Local machine with SCP or SFTP client

Method 1: Download via SCP

On your local computer:

scp hxroot@YOUR_SERVER_IP:/home/admin/logs/example.com/access.log ~/Desktop/
scp hxroot@YOUR_SERVER_IP:/home/admin/logs/example.com/error.log ~/Desktop/

Method 2: Download via SFTP (FileZilla)

  1. Open FileZilla
  2. Connect to YOUR_SERVER_IP as hxroot
  3. Navigate to /home/admin/logs/example.com/
  4. Drag files to local directory
  5. Method 3: Compress and Download Large Logs

    On server, compress first:

    ssh hxroot@YOUR_SERVER_IP -p 22
    gzip /home/admin/logs/example.com/access.log

    Now download the .gz file:

    scp hxroot@YOUR_SERVER_IP:/home/admin/logs/example.com/access.log.gz ~/Desktop/

    Download All Logs for a Domain

    tar -czf /tmp/example_logs.tar.gz /home/admin/logs/example.com/
    scp hxroot@YOUR_SERVER_IP:/tmp/example_logs.tar.gz ~/Desktop/

    Download via HestiaCP Web Interface

    HestiaCP does not have direct log download. Use SSH methods above.

    Automated Log Collection Script

    #!/bin/bash
    # Download all logs for analysis
    mkdir log_collection
    cp /home/admin/logs/example.com/*.log log_collection/
    tar -czf logs_$(date +%Y%m%d).tar.gz log_collection/
    echo "Logs ready: logs_$(date +%Y%m%d).tar.gz"

    ✅ Logs have been downloaded successfully.

Was this article helpful?