When you deploy an application to a live production environment, you must configure usage logging by updating the server cluster XML files in the config directory of the deployed EAC application on disk.

The steps below assume you have promoted your application from an authoring or staging server to your live environment.

At a high level, configuring usage logging consists of specifying the following in the logging configuration files:

Optionally, you can configure logging on an authoring or staging environment for testing and to ensure that everything works as expected.

To configure usage logging:

  1. Navigate to the config\script directory of your deployed EAC application on disk.

    For example, Endeca\apps\Discover\config\script.

  2. If you have licensed Oracle Commerce Guided Search with Experience Manager, modify the sample configuration file that defines your application server clusters:

    1. Open the LiveAppServerCluster.xml file.

    2. For each server cluster, create an <app-server-cluster> element with an id attribute that corresponds to the cluster name.

      For example:

      <app-server-cluster id="LiveAppServerCluster">
      </app-server-cluster>
    3. For each server within the cluster, create an <app-server> element with the following attributes:

      For example:

      <app-server id="LiveDiscover" hostName="assemblerHost.example.com" port="8006">
      </app-server>
    4. For each application running on a given Assembler, create a <web-app> element with the following attributes:

      For example:

      <web-app id="DiscoverWebApp" contextPath="/discover" sslEnabled="true" />
      <web-app id="DiscoverAsService" contextPath="/discoverAsService" />
    5. Add the <web-app> elements to their respective <app-server>s as referenced elements.

      For example:

      <app-server id="LiveDiscover" hostName="assemblerHost" port="8006">
      	   <web-app ref="DiscoverWebApp" />
      	   <web-app ref="DiscoverAsService" />
      </app-server>
    6. Add the <app-server> elements to their respective <app-server-cluster>s as referenced elements.

      For example:

      <app-server-cluster id="LiveAppServerCluster">
          <app-server ref="LiveDiscover" />
      </app-server-cluster>
    7. Save and close the file.

  3. Verify that your Dgraph clusters are configured correctly by reviewing the LiveDgraphCluster.xml. file.

    A sample file is shown below:

    <dgraph-cluster id="LiveDgraphCluster1" getDataInParallel="true" enabled="true">
        <dgraph ref="DgraphA1" />
    </dgraph-cluster>
    
    <dgraph-cluster id="LiveDgraphCluster2" getDataInParallel="true" enabled="true">
        <dgraph ref="DgraphA2" />
    </dgraph-cluster>
  4. Modify the sample usage collection configuration file:

Usage information is stored in memory in the Dgraph or Assembler, and is cleared when you restart the component. After configuring logging, you must schedule usage collection to retrieve the data and store it as log files.


Copyright © Legal Notices