[jboss-jira] [JBoss JIRA] (AS7-4224) Please add a more intuitive way to configure access logging

Neven Cvetkovic (JIRA) jira-events at lists.jboss.org
Wed May 2 15:12:17 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689765#comment-12689765 ] 

Neven Cvetkovic commented on AS7-4224:
--------------------------------------

If it exists:

  /subsystem=web/virtual-server=default-host/access-log=configuration:read-resource

If it doesn't exist, you can create one:

  /subsystem=web/virtual-server=default-host/access-log=configuration:add(pattern=aaaaaa,prefix=bbb,resolve-hosts=false,rotate=true,extended=false)

For more details, take a look at schema file: jboss-as-web_1_0.xsd, e.g.

   <xs:complexType name="http-access-logType">
      <xs:sequence>
         <xs:element name="directory" type="directoryType" />
      </xs:sequence>
      <xs:attribute name="pattern" default="common" />
      <xs:attribute name="resolve-hosts" default="false" type="xs:boolean" />
      <xs:attribute name="extended" default="false" type="xs:boolean" />
      <xs:attribute name="prefix" default="access_log." />
      <xs:attribute name="rotate" default="true" type="xs:boolean" />
   </xs:complexType>

See if that helps.
                
> Please add a more intuitive way to configure access logging
> -----------------------------------------------------------
>
>                 Key: AS7-4224
>                 URL: https://issues.jboss.org/browse/AS7-4224
>             Project: Application Server 7
>          Issue Type: Enhancement
>          Components: CLI, Console
>    Affects Versions: 7.1.0.Final
>         Environment: Windows 7, CentOS 6
>            Reporter: Alex Holmansky
>            Assignee: Alexey Loubyansky
>            Priority: Minor
>
> There's currently no intuitive way to configure access logging in the web subsystem.  In the CLI I can get to what seems like the right area:
> [standalone at localhost:9999 /] cd /subsystem=web/virtual-server=default-host
> [standalone at localhost:9999 virtual-server=default-host] ls
> access-log                          rewrite
> sso                                 alias=["localhost","example.com"]
> default-web-module=ROOT.war         enable-welcome-root=true
>  
> and even
>  
> [standalone at localhost:9999 virtual-server=default-host] cd access-log
> [standalone at localhost:9999 access-log] pwd
> /subsystem=web/virtual-server=default-host/access-log
> but it's absolutely unclear what to do next.
> In the web Admin Console this should be under Web->Servlet/HTTP->Virtual Servers, but is missing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list