Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you run WSO2 DAS in a clustered set up, information relating to the Spark workers in the cluster are logged by default in the <DAS_HOME>/work directory. These spark logs are generated in addition to the default Carbon logs, Audit logs and HTTP access logs that are available for every WSO2 product.

Info

See Managing Logs in the WSO2 Administration Guide for information on how to configure and use Carbon logs, Audit logs and HTTP access logs.

Each time we start a DAS server, a spark application will be created, and the relevant 'stderr' and 'stdout' logs can be found in each application folder inside the <DAS_HOME>/work directory.

These logs can be controlled by creating a log4j.properties file in the <DAS_HOME>/repository/conf/analytics/spark directory. Note: To create this file, you need to rename the log4j.properties.template file that is available in the <DAS_HOME>/repository/conf/analytics/spark directory to log4j.properties.

This section explains how to configure this file and the other configurations required to manage Spark worker logs.

Managing logs in WSO2 DAS servers

Follow the guidelines given below for managing logs in DAS servers.

  • Delete old content from the <DAS-HOME>/work directory for non-running nodes in DAS. Since new directories will be created each time we start the server, the previous data will be unusable after the restart.

  • Be sure to purge data stored in DAS, instead of deleting log files. Data from the database as well as index data stored in the the <DAS_HOME>/repository/data directory will be purged. Log files are required to be managed in the log4j level.