Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/countnazgul/qlik-sense-compress-old-archive-logs
Compress (and optionally delete) Qlik Sense logs from ArchivedLogs folder
https://github.com/countnazgul/qlik-sense-compress-old-archive-logs
Last synced: about 1 month ago
JSON representation
Compress (and optionally delete) Qlik Sense logs from ArchivedLogs folder
- Host: GitHub
- URL: https://github.com/countnazgul/qlik-sense-compress-old-archive-logs
- Owner: countnazgul
- License: mit
- Created: 2022-05-30T20:54:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-31T04:00:21.000Z (over 2 years ago)
- Last Synced: 2024-12-17T20:43:28.382Z (about 1 month ago)
- Language: PowerShell
- Size: 3.91 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Compress Qlik Sense ArchivedLogs
`PowerShell` script that compress Qlik Sense log files from `ArchivedLogs` folder. The archived files will be grouped by month (`YYYY-MM`)
### Parameters
- `rootPath` (mandatory) - the actual location to the `ArchivedLogs` folder
- `maxDays` (mandatory) - greater than `0`. Pickup files older than X days
- `deleteCompressedFilesArg` - `true`/`false` remove the deleted logs files after compressing?
- `storePath` - but default the zip files will be created in the same folder where the log files are/were. If needed to specify different location then use this parameter. The script will create the same folder structure in the target location### Example
```powershell
.\compress.ps1 C:\path\to\ArchivedLogs 30 true C:\some\path\to\store
```### Postman collection
The `Postman` collection can be used to create the external reload task that can run the script. Make the necessary changes after the collection is imported into `Postman`. The collection is set to use `JWT` via `jwt` virtual proxy.
### WARNING
**Please test it in lower environment before running it in Production!**