NGINX System Logging



  • Would it be possible to swap the process, fqdn, and pid order in system logging for nginx?
    Perhaps also remove the fqdn and date/time duplication.

    This would keep it consistent with the other system logging and filtering.
    Month Day Time Host_Name Process_Name[pid]: Message (everything else)

    For Example from this:

    
    Jan  9 15:03:06 pfSense pfsense.localdomain nginx: 2016/01/09 15:03:06 [error] 78366#0: send() failed (54: Connection reset by peer)
    
    

    to this:

    
    Jan  9 15:03:06 pfSense nginx[78366#0]: pfsense.localdomain 2016/01/09 15:03:06 [error] send() failed (54: Connection reset by peer)
    
    

    or this:

    
    Jan  9 15:03:06 pfSense nginx[78366#0]: [error] send() failed (54: Connection reset by peer)
    
    

    Took a quick look but it wasn't obvious to me so thought should ask.  Maybe someone already has the knowledge.


Log in to reply