Server 访问日志无法更正wildfly 8.1服务器中的文件
我们在同一个应用服务器(WildFly 8.1)上部署了两个web应用程序(名为A和B),配置如下所示 两台主机的访问日志配置相同。 现在的问题是,WildFly要么在access_log.log中记录应用程序A,要么在access_log.log中记录应用程序B,但不能同时记录两者 如果应用程序A的日志记录在access_log.log中,则WildFly会从前一天(例如access_log.2018-23-09.log)为应用程序B选择访问日志。 即使两个应用程序都在写入access_log.log,时间戳也没有正确排序 下面是主机配置Server 访问日志无法更正wildfly 8.1服务器中的文件,server,wildfly,wildfly-8,Server,Wildfly,Wildfly 8,我们在同一个应用服务器(WildFly 8.1)上部署了两个web应用程序(名为A和B),配置如下所示 两台主机的访问日志配置相同。 现在的问题是,WildFly要么在access_log.log中记录应用程序A,要么在access_log.log中记录应用程序B,但不能同时记录两者 如果应用程序A的日志记录在access_log.log中,则WildFly会从前一天(例如access_log.2018-23-09.log)为应用程序B选择访问日志。 即使两个应用程序都在写入access_log
<host name="default-host" alias="b.xyz.com">
<access-log pattern="%{i,X-Forwarded-For} %l %u [%t] %D "%r" %s %b "%{i,Referer}" "%{i,User-Agent}""/>
</host>
<host name="ui-host" alias="a.xyz.com" default-web-module="ui-server.war">
<access-log pattern="%{i,X-Forwarded-For} %l %u [%t] %D "%r" %s %b "%{i,Referer}" "%{i,User-Agent}""/>
</host>
我可以通过使用access\u log标记中的prefix属性来计算它。 我给wildfly中的不同主机赋予了不同的前缀值,现在它们正在写入不同的文件,这似乎解决了问题