Directory service logs normally placed in C:\ProgramData\QlikTech\DirectoryServiceConnector\Log folder and Web server log files in C:\ProgramData\QlikTech\WebServer\Log folder.
DirectoryServiceConnector logs can be changed by application Application Data Folder option in DSC settings and web server settings can be changed while installing or in IIS (Site's loggin options).
You have to change it under AppData folder, under Program Files
C:\Program Files\QlikView\Directory Service Connector\QVDirectoryServiceConnector.exe.config.
remember to stop service before change, and to save config file after change.
Webserver don´t have any configurable file to change this in.
There are two ways to move the log and configuration files:
- Modifying the .exe.config files for each component
- Creating a symlink
Modifying the .exe.config files for each component
Modify (or add) the ApplicationDataFolder key:
The locations of the .exe.config files are:
C:\Program Files\QlikView\Directory Service Connector\QVDirectoryServiceConnector.exe.config
C:\Program Files\QlikView\Distribution Service\QVDistributionService.exe.config
C:\Program Files\QlikView\Management Service\QVManagementService.exe.config
C:\Program Files\QlikView\Server\Web Server\QVWebServer.exe.config
Creating a symlink
A symlink references from one location to another. For example, you might have a folder C:\ProgramData\QlikTech which is symlinked to D:\QVData. The data is stored in the D:\QVData folder, but can be accessed from both the C:\ProgramData\QlikTech and D:\QVData. When accessing from C:\ProgramData\QlikTech the behavior is exactly the same as when the data is actually stored in that location.
The main reason for moving logs is because the C-drive usually has limited space and is only intended for operating system files. Log files can fill up a drive quite fast. I like the symlink because you do not have to change your QlikView configuration, while still being able to move the files.
This is achieved through the following steps:
- Stop all QlikView services
- Create the destination directory, for example: D:\QlikView\Config
- Open the command prompt with Administrator privileges and navigate to: C:\ProgramData
- Copy all files in the QlikTech folder to the new destination using Xcopy: Xcopy QlikTech D:\QlikView\Config\ /E /H /K /O /X
- Remove the original QlikTech directory: rmdir QlikTech /s /q
- Create the symlink to the new directory: mklink /D QlikTech D:\QlikView\Config
- Restart all services