Project

General

Profile

Feature #10581

Provide ability to disable nginx access logging to remote syslog server

Added by Russell Morris 5 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Logging
Target version:
-
Start date:
05/20/2020
Due date:
% Done:

0%

Estimated time:

Description

Hi,

It would be helpful to be able to disable nginx access logging, to a remote syslog server - reduce the bandwidth used for all the messages sent. Make this a GUI option I assume, and then set the syslog configuration accordingly?

Thanks!

History

#1 Updated by Jim Pingle 5 months ago

  • Category set to Logging

#2 Updated by Russell Morris 5 months ago

FYI, a snippet from the start of my /var/etc/syslog.d/pfSense.conf file (remote-hostname replaced for security). Not sure all those *.* lines should be there, over and over ... should they?

# Automatically generated, do not edit!
!*
auth.*;authpriv.*                                               /var/log/auth.log
*.*                                                             @remote-hostname
!radvd,routed,zebra,ospfd,ospf6d,bgpd,miniupnpd,igmpproxy
*.*                                                             /var/log/routing.log
*.*                                                             @remote-hostname
!ntp,ntpd,ntpdate
*.*                                                             /var/log/ntpd.log
*.*                                                             @remote-hostname
!ppp
*.*                                                             /var/log/ppp.log
*.*                                                             @remote-hostname

Thanks!

#3 Updated by Russell Morris 5 months ago

And to try to help, make this easier if possible. Some info here,
https://forum.netgate.com/topic/153755/disable-nginx-access-log-to-remote-syslog-server/3

This does seem to work, the key thing is if the access log is disabled, just set,

access_log off;

Thanks!

Also available in: Atom PDF