How to change the log file location for N4V for Webi

Anonymised summary of support ticket #860692 (2026-04-22)

Symptom

The default log files for N4V for Webi are stored in the installation directory, but the user wants to redirect them to a dedicated disk for better management.

Environment

N4V for Webi installed on a server with SAP BusinessObjects Web Intelligence. The environment uses Windows services and PM2 for process management.

Resolution

  1. Locate the configuration file 'apps_need4viz.json' in the N4V installation directory under the 'nodejs' folder.
  2. Modify the log file paths in 'apps_need4viz.json' to point to the new location.
  3. Locate the 'config.js' file in the 'Need4Viz\nodejs\node_modules\custom_element\ce_libs' directory.
  4. Update the 'LogUsageFile' and 'LogFTPUsageFile' variables in 'config.js' to reflect the new log file paths.
  5. Stop the N4V Windows service via the Central Management Console (CMC).
  6. Execute 'pm2 kill' in the command line to stop all PM2-managed processes.
  7. Verify in the Windows Task Manager that no 'node.exe' processes are running. If any remain, terminate them manually.
  8. From the 'need4viz\nodejs' directory, run 'pm2 start apps_need4viz.json' to restart the services with the new configuration.
  9. Execute 'pm2 save' to persist the new configuration.
  10. Verify that log files are being written to the new location.
  11. Restart the N4V Windows service via the CMC.