[
https://issues.jboss.org/browse/WFLY-1721?page=com.atlassian.jira.plugin....
]
Yoshimasa Tanabe commented on WFLY-1721:
----------------------------------------
Hi, Tomaz. I have a question.
I did the following CLI command, but WildFly does not output the access log.
Any idea?
This is CLI history.
{code}
[standalone@localhost:9990 /]
/subsystem=undertow/server=default-server/host=default-host/setting=access-log:add
{"outcome" => "success"}
[standalone@localhost:9990 /]
/subsystem=undertow/server=default-server/host=default-host/setting=access-log:read-resource
{
"outcome" => "success",
"result" => {
"directory" => "${jboss.server.log.dir}",
"pattern" => "common",
"prefix" => "access_log.",
"rotate" => true,
"worker" => "default"
}
}
{code}
{code:xml|title=standalone.xml}
[...]
<subsystem xmlns="urn:jboss:domain:undertow:1.0">
<buffer-caches>
<buffer-cache name="default" buffer-size="1024"
buffers-per-region="1024" max-regions="10"/>
</buffer-caches>
<server name="default-server">
<http-listener name="default" socket-binding="http"
max-post-size="10485760"/>
<host name="default-host" alias="localhost">
<location name="/"
handler="welcome-content"/>
<access-log/>
</host>
</server>
<servlet-container name="default"
default-buffer-cache="default" stack-trace-on-error="local-only">
<jsp-config/>
<persistent-sessions path="persistent-web-sessions"
relative-to="jboss.server.data.dir"/>
</servlet-container>
<handlers>
<file name="welcome-content"
path="${jboss.home.dir}/welcome-content"
directory-listing="true"/>
</handlers>
</subsystem>
[...]
{code}
restarted WildFly, logged WARN log.
{code}
$ ./standalone.sh
[...]
13:47:13,929 WARN [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47)
service name: service jboss.undertow.server.default-server.host.default-host.access-log
[...]
{code}
and no access-log
{code}
ls $WILDFLY_HOME/standalone/log/
server.log server.log.2013-08-28
{code}
Access log support
------------------
Key: WFLY-1721
URL:
https://issues.jboss.org/browse/WFLY-1721
Project: WildFly
Issue Type: Feature Request
Components: Web (Undertow)
Affects Versions: 8.0.0.Alpha3
Reporter: Tomaz Cerar
Assignee: Tomaz Cerar
Fix For: 8.0.0.Beta1
We need to expose access log configuration trough management.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira