Configure local and remote system logging

Description

I would like to make a feature request for the ability to configure system logging in the FreeNAS web GUI. Basically, one would be able to the equivalent of edit the /etc/syslog.conf and /etc/newsyslog.conf to allow for log management and log rotation.

Currently, all one can do is set a partition to contain the logs, and copy them to a remote syslog, but if one is creating a lot of logs (for example through SMB auditing), this could quickly become very difficult to manage and parse. As more users and clients demand more detailed logs and more retention in the wake of increased awareness of security threats, the demand for more flexible logging in FreeNAS will only increase.

I would propose to add an extra page in the 'System' submenu for logging, adopt the two logging menu items from 'General', and add the necessary entry boxes to configure the facility, level and file destinations for the logging. This functionality should include support for sending to a remote syslog.

I realise this is a fair amount of work, but it would be a lot of wrapping of existing FreeBSD functionality, and would provide an important functionality for users of FreeNAS in a production environment.

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Kris Moore 
July 18, 2024 at 6:06 PM

Thank you for submitting this feature request! To better accommodate and gauge community interest for future versions of TrueNAS we have moved the submission process to our TrueNAS Community Forums. If this feature is still important and relevant for consideration, please refer to the links below on how to submit it for community voting and TrueNAS roadmap review.

Feature Requests Forum:
https://forums.truenas.com/c/features/12

Feature Requests FAQ:
https://forums.truenas.com/t/about-the-feature-requests-category-readme-first/8802

Eric 
February 15, 2021 at 7:14 PM

To test how feasible it would be to allow sending more than one level to a remote logging host, I modified the syslog-ng.conf file found in /usr/local/etc. I know these changes will be lost at the next reboot.

The two lines that follow were added by the TrueNAS GUI. 

 

 

I changed the second line to:

And was rewarded with the specified log messages appearing in the TrueNAS Graylog feed.

It looks like TrueNAS is setup internally to support selecting more than one log level being sent to a remote log host.

Eric 
February 13, 2021 at 9:40 PM

Currently, only one level selection is allowed, it would be beneficial if we could select one, two, ..., all, log levels to send to the remote server. Similar to what pfSense has implemented. See below.

 

Unresolved

Details

Priority

Assignee

Reporter

Labels

Components

Affects versions

More fields

Katalon Platform

Created November 12, 2019 at 3:20 PM
Updated July 18, 2024 at 6:07 PM