Announcement Announcement Module
Collapse
No announcement yet.
I need to configure the access log format Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • I need to configure the access log format

    Is it possible to change the format of the access log on the dm server.

    Right now we are logging the ip address of the load balancers so I need to log our "LB_REMOTE_HOST" or "X_FORWARDED_FOR" instead of the standard "REMOTE_ADDR"

    I changed the accessLogFormat var in servletContainer.config to a stadard tomcat format %{X-Forwarded-For}i %l %u %t "%r" %s %b but it didn't work.

    Is this just not possible on the dm server? I can setup our LBs to pass the ip address as usual but we loose the multiplexing which I don't want to do.

    Thanks,
    Andy

  • #2
    You can configure AccessLogValve in config/servlet/context.xml
    Code:
    <Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="../../serviceability/logs/access"
    prefix="MyFancyAccessLogs." suffix=".log"  pattern="%a %A %{X-
    FORWARDED-FOR}i"/>
    Currently there is nothing in servletCotainer.config

    Comment

    Working...
    X