1 Reply Latest reply on Dec 17, 2013 3:37 AM by gonthim

    How do I needs configure the CLI logs in to a different folder in Jboss EAP 6.1 ?

    sathishpmca

      Hi Guys,

       

       

      I have a customised script to log the console logs and server logs by using the below lines.

       

      if [ -z "$JBOSS_PIDFILE" ]; then

        JBOSS_PIDFILE=$JBOSS_SERVER_HOME/run/jboss-as-standalone-mas.pid

      fi

      export JBOSS_PIDFILE

       

      if [ -z "$JBOSS_CONSOLE_LOG" ]; then

        JBOSS_CONSOLE_LOG=$JBOSS_SERVER_HOME/log/console.log

      fi

       

      I needs to do the same for CLI logs. How do I needs configure the CLI logs in to a different folder in Jboss EAP 6.1 ?

      When I have tried like below, is not working..

       

      if [ -z "$JBOSS_CLI_LOG" ]; then

        JBOSS_CLI_LOG=$JBOSS_SERVER_HOME/log/jboss-cli.log

      fi

       

      Thanks in advance.

        • 1. Re: How do I needs configure the CLI logs in to a different folder in Jboss EAP 6.1 ?
          gonthim

          If you have CLI logging enabled, you should be able to change your script from this:

           

          if [ -z "$JBOSS_CLI_LOG" ]; then

            JBOSS_CLI_LOG=$JBOSS_SERVER_HOME/log/jboss-cli.log

          fi

           

          to this:

           

          if [ -z "$JBOSS_CLI_LOG" ]; then

            JBOSS_CLI_LOG=$JBOSS_SERVER_HOME/../bin/jboss-cli.log

          fi

           

          In order to pick up the cli logs from the bin directory.

           

          Alternatively, you can use the jboss-cli-logging.properties file in $JBOSS_HOME/bin to change the logging location to your $JBOSS_SERVER_HOME/log/ directory like so:

           

          handler.FILE.fileName=../standalone/log/${jboss.cli.log.file:jboss-cli.log}