To generate the agent log files in a different directory, set the log directory environment variable.
Use Control Panel > System > Advanced Properties > Environment Variables.
Click New under System variables.
Type IQLOGDIR15 for Variable and the full path of the directory for Value.
Click OK.