On 28.09.21 15:37, simona vittori wrote:
Hello, I ask you if it's possible to inhibit writing the stunnel logs to the / var / log / messages file.
*This* file where the log messages end up is apparently not stunnel's choice, but that of the local syslogd. Many variants of syslogd have features that allow you to filter out a specific source - in this case, stunnel - and redirect its messages elsewhere (though .../messages, in the RHEL/CentOS-verse, is sort of a catch-all destination).
I *suppose* that you could tell stunnel not to use syslogd and write its log to a file directly, too.
In either case, keep in mind that you'll have to set up other mechanisms (e.g., logrotate, logwatch, ...) to work on the new file, too.
Regards,