# Collecting log files in SUM Online mode

##

SUM generates a set of debug log files that contains internal process and debug information which can be useful in determining issues with SUM. Log files are stored in the `%LOCALAPPDATA%\sum` (Windows) and `/var/tmp/sum` (Linux) directories. SUM creates log files for each function and node that SUM updates.

Additionally, SUM does audit logging to the Windows Event Log and the syslogs on Linux and VMware. Follow the procedures outlined for each operating system to export the OS log.

SUM includes a utility named `gatherlogs.bat` (Windows) or `gatherlogs.sh` (Linux) to create a compressed .zip (Windows) or tar.gz (Linux) file with all the logs. To review the log files, you can run this utility to gather all the logs in one file.

Procedure

1. Open the `/packages` directory that contains SUM and then launch `gatherlogs.bat` (Windows) or `gatherlogs.sh` (Linux).
2. Use the command `gatherlogs -s` to run the logs without a pause.