Manage Logs

Nessus has the following log files:

  • nessusd.dump — Nessus dump log file used for debugging output.
  • nessusd.messages — Nessus scanner log.
  • www_server.log — Nessus web server log.
  • backend.log — Nessus backend log.

Default Log Locations

The following are the default log file locations for each operating system.

  • Linux — /opt/nessus/var/nessus/logs/<filename>
  • Mac OS X — /Library/Nessus/run/var/nessus/logs/<filename>
  • Windows — C:\ProgramData\Tenable\Nessus\nessus\logs\<filename>

You can customize log file locations when you modify log settings.

Modify Log Settings

To modify log settings, use one of the following methods:

Modify log.json

You can configure log locations and rotation strategies by editing the log.json file.

Note: You cannot configure nessusd.dump settings using log.json. Configure nessusd.dump settings using advanced settings.

To modify log settings using log.json:

  1. Using a text editor, open the log.json file, located in the corresponding directory:

    • Linux — /opt/nessus/var/nessus/log.json
    • Mac OS X /Library/Nessus/run/var/nessus/log.json
    • WindowsC:\ProgramData\Tenable\Nessus\nessus\log.json
  2. For each reporters[x].reporter, add or modify the following parameters.

    Parameter Default value Description
    rotation_strategy size

    Determines whether the log archives files based on maximum rotation size or rotation time.

    Valid values:

    • size — rotate the log based on size, as specified in max_size.
    • daily — rotate the log based on time, as specified in rotation_time.
    rotation_time 86400 (1 day)

    Rotation time in seconds.

    Only used if rotation_strategy is daily.

    max_size

    Nessus: 536870912 (512 MB)

    Agent: 10485760 (10 MB)

    Rotation size in bytes.

    Only used if rotation_strategy is size.

    max_files

    Nessus10

    Agent: 2

    Maximum number of files allowed in the file rotation.

    The maximum number includes the main file, so 10 max_files is 1 main file and 9 backups. If you decrease this number, old logs are deleted.

    file

    Depends on operating system and log file

    The location of the log file. See Default Log Locations.

  3. Save the log.json file.
  4. Restart the Nessus service.

    The log settings are updated.