Qlik Sense Log Collector is the primary tool for collecting log files from a Qlik Sense on Windows deployment.
In cases where Qlik Sense Log Collector is unable to collect the desired Qlik Sense archived logs, it may be possible to collect logs using PowerShell instead of manually collecting the log files. Below is an example of a simple PowerShell script that utilizes native Windwos Server functions to copy files from the archived log folder and compresses them to a ZIP file.
NOTE: The script will collect archived logs for the past seven (7) days.
- Download file https://github.com/tonikautto/qseow-copy-archivedlogs-ps1/archive/master.zip
- Unzip file in any folder, for example c:\temp
- Browse to your Qlik Sense Archived log folder
- Copy the folder path
- Run PowerShell prompt As Administrator
- Change directory to same as location as in Step 2
cd c:\temp
- Execute PS1 file, where
<ARCHIVE_LOGS_PATH>
is replaced with the path copied in Step 4.
.\copy-archivedlogs-to-zip.ps1 -ArchivedLogsPath "<ARCHIVE_LOGS_PATH>"
- ZIP file with collected archived log files is stored in same folder as PS1 file
- Double click on ZIP file to view its content
- Confirm that it has sub folder for each node
This project is provided "AS IS", without any warranty, under the MIT License - see the LICENSE file for details