Discussion

2
Replies
2307
Views
NapoleonT Member since 2014 6 posts
Rulesware
Posted: 5 years ago
Last activity: 5 years 2 months ago
Closed

configuring AES nodes

I'm adding a new server to my AES server.  My AES version is 3.5 and my Pega Server is 7.1.7 . I have added the lines that the manual said to the prconfig.xml file and prlogging.xml . I already have restarted the both servers but i'm still can not  make it work.

The prconfig.xml files is as follow:

?xml version="1.0" encoding="UTF-8"?>
<pegarules>
    <!-- This is a minimum format prconfig.xml file.  Only the settings which are required to access settings in the database are included.
    All other settings which were formerly located only in this file are now Data-Admin-System-Settings.      -->
    <env name="initialization/settingsource" value="merged" />
    <env name="database/databases/PegaRULES/dataSource" value="java:comp/env/jdbc/PegaRULES"/>
    <env name="database/databases/PegaDATA/dataSource" value="java:comp/env/jdbc/PegaRULES"/>

      <!-- Health Pulse -->

        <env name="Identification/SystemName" value="Pega7Sandbox" />
    <env name="management/enabled" value="true" />
    <env name="management/interval" value="120" />
    <env name="management/notifications/appender" value="ALERT-AES-SOAP" />    
    
    
    <!-- Most nodes have a 'default' classification and for these nodes, no additional changes need to be made to this file.  However,
    if this is node has a non-general purpose, for example: 'Agent', then the node classification setting should be added to this file. -->
    <!--env name="initialization/nodeclassification" value="Agent" /  -->
    
    
    
    <!-- Most nodes have a 'default' classification and for these nodes, no additional changes need to be made to this file.  However,
    if this is node has a non-general purpose, for example: 'Agent', then the node classification setting should be added to this file. -->
    <!--env name="initialization/nodeclassification" value="Agent" /  -->
    
    
    <!-- Settings can still be put in this file.  If they are, then the value in this file will override the value in the database
    for this node.  This is useful for settings which are specific to this node and should not be shared by multiple nodes on this
    system. -->
    
    
    <!--
    Pegasystems recommends that you use Application Server connection pooling to the database for Websphere and
        Weblogic.  These examples are provided if you need to use Pega Connection Pooling for Tomcat or for testing purposes.
        If you are using Application server connection pooling, there is no longer a need to edit this file.  
        
        ****The new format for this file is only valid if you are using Application Server connection pooling. If you are not, please replace
        this file with an older version. ***
        
    
    Oracle 10g (Type 4) oracle.jdbc.OracleDriver                jdbc:oracle:thin:@serverName:1521:db  
    IBM DB/2 Type 4     com.ibm.db2.jcc.DB2Driver               jdbc:db2://serverName:port/dbName
    SQL Server 2005     com.microsoft.sqlserver.jdbc.SQLServerDriver jdbc:sqlserver://serverName:1433;SelectMethod=cursor;SendStringParametersAsUnicode=false
    -->
    
    <!--
    <env name="database/drivers" value="com.microsoft.sqlserver.jdbc.SQLServerDriver;oracle.jdbc.OracleDriver" />
    <env name="database/databases/PegaRULES/url" value="jdbc:sqlserver://serverName:1433;SelectMethod=cursor;SendStringParametersAsUnicode=false" />
    <env name="database/databases/PegaRULES/userName" value="a_username" />
    <env name="database/databases/PegaRULES/password" value="a_password" />
    
    <env name="database/databases/PegaDATA/url" value="jdbc:sqlserver://serverName:1433;SelectMethod=cursor;SendStringParametersAsUnicode=false" />
    <env name="database/databases/PegaDATA/userName" value="a_username" />
    <env name="database/databases/PegaDATA/password" value="a_password" />
    -->
</pegarules>

and the prlogging.xml is as follow:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

    <appender name="ASYNC" class="com.pega.apache.log4j.AsyncAppender">
        <param name="BufferSize" value="512"/>
        <param name="Blocking" value="false"/>
        <filter class="com.pega.apache.log4j.varia.LevelMatchFilter">
            <param name="LevelToMatch" value="ALERT"/>
            <param name="AcceptOnMatch" value="false"/>
        </filter>
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="PEGA"/>
               <appender-ref ref="EXCEPTION-AES-SOAP"/>
            </appender>

<!--    <appender name="ALERT-ASYNC" class="com.pega.apache.log4j.AsyncAppender">
        <param name="BufferSize" value="512"/>
        <param name="Blocking" value="false"/>
        <filter class="com.pega.apache.log4j.varia.LevelMatchFilter">
            <param name="LevelToMatch" value="ALERT"/>
            <param name="AcceptOnMatch" value="true"/>
        </filter>
        <filter class="com.pega.apache.log4j.varia.DenyAllFilter"/>
         <appender-ref ref="ALERT-PERFORMANCE"/>
        <appender-ref ref="ALERT-SECURITY"/>
    </appender>  -->

    <!-- Primera Agregada -->
    <appender name="ALERT-ASYNC"  class="com.pega.apache.log4j.AsyncAppender">
        <param name="BufferSize" value="512"/>
        <param name="Blocking" value="false"/>
        <filter class="com.pega.apache.log4j.varia.LevelMatchFilter">
     <param name="LevelToMatch" value="ALERT"/>
    <param name="AcceptOnMatch" value="true"/>
         </filter>
     <filter class="com.pega.apache.log4j.varia.DenyAllFilter"/>  
    <appender-ref ref="ALERT"/>
        <appender-ref ref="ALERT-AES-SOAP"/>
       </appender>

<!--Segunda Agregada -->

    <appender name="ALERT-AES-SOAP" class="com.pega.pegarules.priv.util.SOAPAppenderPega">
        <param name="BufferSize" value="512"/>
        <param name="Blocking" value="false"/>
        <param name="EndPointURL" value="http://10.190.7.217:8080/prweb/PRSOAPServlet" />
        <param name="Mode" value="ALERT" />
        <param name="AllowLiveChanges" value="true"/>
        <param name="OutputEnabled" value="true"/>
        <layout class="com.pega.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%m%n" />
        </layout>
    </appender>

<!--Tercera Entrada  -->

          <appender name="EXCEPTION-AES-SOAP" class="com.pega.pegarules.priv.util.SOAPAppenderPega">
        <param name="BufferSize" value="512"/>
        <param name="Blocking" value="false"/>
        <param name="EndPointURL" value="http://10.190.7.217:8080/prweb/PRSOAPServlet" />
        <param name="Mode" value="exception" />
        <param name="AllowLiveChanges" value="true" />
        <param name="ExceptionsOnly" value="true" />
        <layout class="com.pega.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%d{GMT}*%Y{instance_id}*%t*%c*%X{RequestorId}*%X{pegathread} *%X{app}*%X{userid}*%X{stack}*%m%n"/>
        </layout>
    </appender>

<!--Cuarta Entrada -->

<!--    <appender name="ASYNC" class="com.pega.apache.log4j.AsyncAppender">
        <param name="BufferSize" value="512"/>
        <param name="Blocking" value="false"/>
        <filter class="com.pega.apache.log4j.varia.LevelMatchFilter">
            <param name="LevelToMatch" value="ALERT"/>
            <param name="AcceptOnMatch" value="false"/>
        </filter>
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="PEGA"/>
        <appender-ref ref="EXCEPTION-AES-SOAP"/>
    </appender>
-->

    <appender name="ALERT-PERFORMANCE" class="com.pega.apache.log4j.AsyncAppender">
        <param name="BufferSize" value="512"/>
        <param name="Blocking" value="false"/>
        <filter class="com.pega.pegarules.priv.MDCMatchFilter">
            <param name="TagToMatch" value="alertType" />
            <param name="StringToMatch" value="security" />
            <param name="AcceptOnMatch" value="false"/>
        </filter>
        <appender-ref ref="ALERT"/>
    </appender>

    <appender name="ALERT-SECURITY" class="com.pega.apache.log4j.AsyncAppender">
        <param name="BufferSize" value="512"/>
        <param name="Blocking" value="false"/>
        <filter class="com.pega.pegarules.priv.MDCMatchFilter">
            <param name="TagToMatch" value="alertType" />
            <param name="StringToMatch" value="security" />
            <param name="AcceptOnMatch" value="true"/>
        </filter>
        <filter class="com.pega.apache.log4j.varia.DenyAllFilter"/>
        <appender-ref ref="ALERTSECURITY"/>
    </appender>
    
    <appender name="CONSOLE" class="com.pega.apache.log4j.ConsoleAppender">
        <layout class="com.pega.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d [%20.20t] [%10.10X{pegathread}] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>
        </layout>
    </appender>
    
    <appender name="PEGA" class="com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega">
      <param name="FileNamePattern" value="'@{web.tmpdir}/PegaRULES-'yyyy-MMM-dd'.log'"/>
      <param name="MaxFileSize" value="50MB" />
      <layout class="com.pega.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%d [%20.20t] [%10.10X{pegathread}] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>
      </layout>
     </appender>
 
    <appender name="ALERT" class="com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega">
      <param name="FileNamePattern" value="'@{web.tmpdir}/PegaRULES-ALERT-'yyyy-MMM-dd'.log'"/>
      <param name="MaxFileSize" value="50MB" />
      <layout class="com.pega.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%m%n" />
      </layout>
    </appender>
    
    <appender name="ALERTSECURITY" class="com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega">
      <param name="FileNamePattern" value="'@{web.tmpdir}/PegaRULES-ALERTSECURITY-'yyyy-MMM-dd'.log'"/>
      <param name="MaxFileSize" value="50MB" />
      <layout class="com.pega.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%m%n" />
      </layout>
    </appender>
    
    <appender name="BIX" class="com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega">
      <param name="FileNamePattern" value="'@{web.tmpdir}/PegaBIX-'yyyy-MMM-dd'.log'"/>
      <param name="MaxFileSize" value="50MB" />
      <layout class="com.pega.apache.log4j.PatternLayout">
          <param name="ConversionPattern" value="%d [%20.20t] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>
      </layout>
    </appender>

    <category name="com.pega.pegarules.data.internal.access.ExtractImpl" additivity="false">
        <priority value="info"/>
        <appender-ref ref="BIX"/>
    </category>
    
    <category name="com.pega.pegarules.data.internal.access.ExtractParameters" additivity="false">
        <priority value="info"/>
        <appender-ref ref="BIX"/>
    </category>
    
    <category name="com.pega.pegarules.data.internal.access.DatabaseUtilsCommonImpl" additivity="false">
        <priority value="info"/>
        <appender-ref ref="BIX"/>
    </category>

<!--  Provided as an example for how to enable messaging for PRPC or java class.
    <category name="Rule_Obj_Activity">
        <priority value="info"/>
    </category>

    <category name="com.pega.pegarules.engine.context.InitialConfiguration">
        <priority value="info"/>
    </category>
-->

<!-- Provided as an example for how to enable logging for LookupLists in a separate file
    <appender name="LOOKUPLIST-STAT" class="com.pega.pegarules.priv.util.FileAppenderPega">
        <param name="FileNamePattern" value="'PegaRULES-LLCSTAT-'yyyy-MMM-dd'.csv'" />
        <layout class="com.pega.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%m%n" />
        </layout>
    </appender>

    <category
        name="com.pega.pegarules.session.internal.stats.lookuplist.LookupListStats">
        <priority value="info" />
        <appender-ref ref="LOOKUPLIST-STAT" />
    </category>    
-->
    <root>
        <priority value="alert"/>
        <appender-ref ref="ASYNC"/>
        <appender-ref ref="ALERT-ASYNC"/>
    </root>

</log4j:configuration>

 

 

Low-Code App Development Testing Applications
Moderation Team has archived post
Share this page LinkedIn