Symantec Access Management

Expand all | Collapse all

Log path change for SiteMinder Admin UI in 12.7 version

Jump to Best Answer
  • 1.  Log path change for SiteMinder Admin UI in 12.7 version

    Posted 02-01-2018 05:01 PM

    Hi All,

     

    I have recently installed 12.7 version of Site Minder Admin UI in our environment and as expected the Admin UI logs are getting created in {Home_Path}/adminui/standalone/log. I want to change the log path so I have modified standalone.sh file by changing the log path.

     

    But for some reason it is not working as expected and the log files are still getting created in the default path instead of the path I have mentioned in standalone.sh.

     

    Please let me know how to change the log file path for SM Admin UI in 12.7 version.

     

    Thank you,

    Gopi.



  • 2.  Re: Log path change for SiteMinder Admin UI in 12.7 version

    Broadcom Employee
    Posted 02-01-2018 05:03 PM

    Update the log path settings in this file "standalone-full.xml" then restart the process.



  • 3.  Re: Log path change for SiteMinder Admin UI in 12.7 version
    Best Answer

    Posted 02-01-2018 07:15 PM

    Hi Gopi,

     

    You would need to modify the highlighted section in standalone-full.xml to change the log path in 12.7 :

     

    <subsystem xmlns="urn:jboss:domain:logging:2.0">

                <console-handler name="CONSOLE">

     

                    <formatter>

                        <named-formatter name="COLOR-PATTERN"/>

                    </formatter>

                <level name="WARN"/>

    </console-handler>

                <periodic-rotating-file-handler autoflush="true" name="FILE">

                    <formatter>

                        <named-formatter name="PATTERN"/>

                    </formatter>

                    <file path="server.log" relative-to="jboss.server.log.dir"/>

                    <suffix value=".yyyy-MM-dd"/>

                    <append value="true"/>

                </periodic-rotating-file-handler>

                <logger category="com.arjuna">

                    <level name="WARN"/>

                </logger>

                <logger category="org.apache.tomcat.util.modeler">

                    <level name="WARN"/>

                </logger>

                <logger category="org.jboss.as.config">

                    <level name="WARN"/>

                </logger>

                <logger category="sun.rmi">

                    <level name="WARN"/>

                </logger>

                <logger category="jacorb">

                    <level name="WARN"/>

                </logger>

                <logger category="jacorb.config">

                    <level name="ERROR"/>

                </logger>

                <root-logger>

                    <level name="DEBUG"/>

                    <handlers>

                        <handler name="CONSOLE"/>

                        <handler name="FILE"/>

                    </handlers>

                </root-logger>

                <formatter name="PATTERN">

                    <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                </formatter>

                <formatter name="COLOR-PATTERN">

                    <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                </formatter>

            </subsystem>


    Regards,

    Ujwol



  • 4.  Re: Log path change for SiteMinder Admin UI in 12.7 version

    Posted 02-01-2018 11:43 PM

    Hi Ujwol,

    Thank you for the details. Should I have to change the value of the path attribute only ? For example as I have mentioned below ? I couldnt understand if I have to do anything with relative-to="jboss.server.log.dir"

     

     <file path="/abc/def/xyz/server.log" relative-to="jboss.server.log.dir"/>

     

    Thanks,

    Gopi.

     

     



  • 5.  Re: Log path change for SiteMinder Admin UI in 12.7 version

    Posted 02-01-2018 11:47 PM

    If you want to specify absolute path I think you can remove “relative-to” attribute..

     

    If not , then the relative path would be relative to “log” directory of the jboss server.



  • 6.  Re: Log path change for SiteMinder Admin UI in 12.7 version

    Posted 02-02-2018 12:13 AM

    I have set like <file path="server.log" relative-to="/abc/def/xyz/"/> but it is creating log file in two places instead of one.

     

    I was hoping it was going to create the first one but it is also creating the second one as well.

     

    1. /abc/def/xyz/server.log

    2. {home_path}/adminui/standalone/log/abc/def/xyz/server.log

     

    Thanks,

    Gopi



  • 7.  Re: Log path change for SiteMinder Admin UI in 12.7 version

    Broadcom Employee
    Posted 02-02-2018 12:22 AM

    Haven't tried relative path, but specifying absolute path worked for me.

                                                

                                                    <file path="/log/adminui/server.log"/>



  • 8.  Re: Log path change for SiteMinder Admin UI in 12.7 version

    Posted 02-02-2018 12:24 AM

    Yeah Just try the absolute path and remove the relative path …



  • 9.  Re: Log path change for SiteMinder Admin UI in 12.7 version

    Posted 02-02-2018 06:05 PM

    Hi Makesh,

     

    Thank you. It worked for me as well.

     

    I also see some other configuration as well related to the log file in {Home_Path}/adminui/standalone/configuration/logging.properties. What is the importance of this ?

     

    handler.FILE=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler
    handler.FILE.level=ALL
    handler.FILE.formatter=PATTERN
    handler.FILE.properties=append,autoFlush,enabled,suffix,fileName
    handler.FILE.constructorProperties=fileName,append
    handler.FILE.append=true
    handler.FILE.autoFlush=true
    handler.FILE.enabled=true
    handler.FILE.suffix=.yyyy-MM-dd
    handler.FILE.fileName=/abc/def/xyz/server.log

     

    If we customize the log file path then do we also need to make any changes for Log Rotation / Log Append etc ?

    Thanks,

    Gopi.



  • 10.  Re: Log path change for SiteMinder Admin UI in 12.7 version

    Broadcom Employee
    Posted 02-02-2018 06:46 PM

    Any changes to “Logging.properites” is overwritten when the jboss start up.

    So , you should ideally be making this change in standalone-full.xml. Logging.properties is created based on this.