5 Replies Latest reply on Feb 9, 2015 10:05 AM by Kohei Nozaki

    Any way to get scheme (http or https) in access-log?

    Kohei Nozaki Newbie

      Hello, I'm configuring access-log of Undertow, and want to record what scheme (http or https) was used in each request, but I can't found any pattern to achieve it in following documentation.

       

      https://github.com/undertow-io/undertow/blob/master/core/src/main/java/io/undertow/server/handlers/accesslog/AccessLogHandler.java#L39

       

      I tried %{r,scheme} but it doesn't work. it looks like that it invokes ServletRequest#getAttribute("scheme"), not getScheme() as I expected. is there any way to achieve it?

       

      Thanks.