Log collection instructions
THIS DOCUMENT IS FOR:
- Acunetix Premium On-Premises
This document explains how to collect logs for your Acunetix installation and what to send to the Acunetix Support team.
Linux Installations
If your Acunetix installation is on a Linux machine, run the following command from the command line:
sudo tar -cvzf \ /acunetix_logs_$(date +"%Y%m%d%H%M%S").tar.gz \ /home/acunetix/.acunetix/logs \ /home/acunetix/.acunetix/wvs.ini \ /home/acunetix/.acunetix/data/general \ /home/acunetix/.acunetix/data/lsr_logs \ /home/acunetix/.acunetix/data/temp \ /home/acunetix/.acunetix/data/crashes |
Send the resulting /acunetix_logs_xxxx.tar.gz file to Acunetix Support.
Windows Installations
If your Acunetix installation is on a Windows machine, run the following Powershell Script:
# Define the archive path $ArchivePath = "C:\acunetix_logs_$(Get-Date -Format 'yyyyMMddHHmmss').zip" # Function to capture files from multiple sources, including those in use function Capture-Files { param( [array]$SourcePaths, [string]$DestinationPath ) # Create a temporary directory $TempDir = New-TemporaryDirectory # Loop through each source path foreach ($SourcePath in $SourcePaths) { # Determine if the source is a directory or a file if (Test-Path -PathType Container $SourcePath) { # If it's a directory, copy its contents to the temporary directory $DestTempDir = ($TempDir[1] + $($SourcePath.Split(':')[-1])).ToString() robocopy $SourcePath $DestTempDir /e /zb /R:1 /W:1 } else { # If it's a file, copy the file directly to the temporary directory Copy-Item -Path $SourcePath -Destination $TempDir[1] } } # Create the archive from the temporary directory Compress-Archive -Path $TempDir[1] -DestinationPath $DestinationPath # Remove the temporary directory Remove-Item -Path $TempDir[1] -Recurse -Force } function New-TemporaryDirectory { $tempPath = Join-Path -Path $env:TEMP -ChildPath ([Guid]::NewGuid().ToString("N")) New-Item -ItemType Directory -Path $tempPath return $tempPath } # Define an array of source paths (including a file) $SourcePaths = @( “C:\ProgramData\Acunetix\shared\general”, “C:\ProgramData\Acunetix\crashes”, “C:\ProgramData\Acunetix\shared\lsr_logs", "C:\ProgramData\Acunetix\logs", "C:\ProgramData\Acunetix\shared\temp", "C:\ProgramData\Acunetix\settings.ini" ) # Call the function to capture files from multiple sources Capture-Files -SourcePaths $SourcePaths -DestinationPath $ArchivePath |
Send the resulting C:\acunetix_logs_xxxx.zip file to Acunetix Support.