You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi wonderful team,
This is not an issue but more of a request. When jira is running behind a proxy server, the client ip address reflected in the jira access logs is all coming from the localhost ip. It would be better to have the clients' real ip addresses inside jira access logs specially when you feed the logs into logstash or filebeat.
The configuration needed should be added to the server.xml file, please see example below:
<ValveclassName="org.apache.catalina.valves.RemoteIpValve"internalProxies="<proxy server ip addresses e.g. 10\.10\.10\.10|127\.0\.0\.1" />
<ValveclassName="org.apache.catalina.valves.AccessLogValve"requestAttributesEnabled="true"pattern="%a %{jira.request.id}r %{jira.request.username}r %t "%m %U%q %H" %s %b %D "%{Referer}i""%{User-Agent}i""%{jira.request.assession.id}r""/>
</Engine>
The required changes are:
The extra valve
and the extra attribute: requestAttributesEnabled="true" in the second valve line with the jira log pattern
Hoping this change is considered.
Thanks!
The text was updated successfully, but these errors were encountered:
this use case should already be possible to accomplish slightly differently with the master branch; see the $tomcat_accesslog_enable_xforwarded_for parameter
Hi wonderful team,
This is not an issue but more of a request. When jira is running behind a proxy server, the client ip address reflected in the jira access logs is all coming from the localhost ip. It would be better to have the clients' real ip addresses inside jira access logs specially when you feed the logs into logstash or filebeat.
The configuration needed should be added to the
server.xml
file, please see example below:The required changes are:
requestAttributesEnabled="true"
in the second valve line with the jira log patternHoping this change is considered.
Thanks!
The text was updated successfully, but these errors were encountered: