From owner-freebsd-ports-bugs@freebsd.org Wed Jan 16 22:56:59 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFE311498338 for ; Wed, 16 Jan 2019 22:56:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E12088B28F for ; Wed, 16 Jan 2019 22:56:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A40BB1498337; Wed, 16 Jan 2019 22:56:57 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 817DC1498333 for ; Wed, 16 Jan 2019 22:56:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 20E6C8B28D for ; Wed, 16 Jan 2019 22:56:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5B67CADD6 for ; Wed, 16 Jan 2019 22:56:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0GMuu5k015266 for ; Wed, 16 Jan 2019 22:56:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0GMuufL015265 for ports-bugs@FreeBSD.org; Wed, 16 Jan 2019 22:56:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 235014] www/mod_security: ModSec not showing module in Apache error log Date: Wed, 16 Jan 2019 22:56:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sean.smith@basecommerce.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2019 22:56:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235014 Bug ID: 235014 Summary: www/mod_security: ModSec not showing module in Apache error log Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: sean.smith@basecommerce.com CC: walter@lifeforms.nl CC: walter@lifeforms.nl Flags: maintainer-feedback?(walter@lifeforms.nl) There is an issue with Mod Security where it will not properly log the modu= le name in the error log (ex: /var/log/httpd-error.log).=20 As a part of my ErrorLogFormat configuration I have set: [%-m:%l] %m would show the module in the error log and using %-m will the log show a= - if it wasn't able to return anything. So as of right now the logs will show like this [Wed Jan 16 22:51:05 2019] [-:notice] [pid 6923] mod_security2.c(762): [cli= ent ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [-:notice] means that I am unable to filter log levels for the modsec module using things like 'LogLevel warn security2:crit' since the error log doesn't know that the security2 module is what is being logged. A thread having the same issue and the maintainer providing a patch - https://github.com/SpiderLabs/ModSecurity/pull/840 I believe the actual fix is here https://github.com/SpiderLabs/ModSecurity/commit/1048fe8e5ea8d3eb7ce7b5c4c6= 70e394bb745e7e The maintainer does mention in that thread that he did indeed patch it but = I am not sure if this link is the exact patch. --=20 You are receiving this mail because: You are the assignee for the bug.=