Creating a Log Store

If failover is enabled, configure a log store to capture the data that flows through a project.
Note: Log stores do not store SAP Sybase Event Stream Processor event logs (cluster logs, server logs, or project logs).

Create one log store per project. The preferred destination for log store files is the base directory where project files are stored.

  1. In the CCL editor, create a log store using the CREATE LOG STORE statement:
    CREATE [DEFAULT] LOG STORE storename
    PROPERTIES
    filename='filepath'
    	[sync={ true | false},]
    	[sweepamount=size,]
    	[reservepct=size,]
    	[ckcount=size,]
    	[maxfilesize=filesize];
  2. For the filename property enter either a relative (preferred) or absolute file path for the location of the log store:
    Option Description
    Relative path (preferred) A relative path is relative to the ESP base directory. Using a relative path means that your log store automatically points to the base directory. Relative paths do not point to the directory stack; this means that the path does not start with a drive letter or slash (/).
    Absolute path (not recommended) An absolute path points to any location on your machine, regardless of the current working directory (base directory). For Windows systems, an absolute path begins with the drive letter; on UNIX and Solaris systems, the absolute path begins with a slash (/).
    The relative path location must be a shared disk accessible by all cluster nodes. The log store path is specified in the filename property within the log store definition. Using a relative path automatically places the log store under: <base-directory>/<workspace-name>.<project-name>.<instance-number>. You can view base directory definitions in the cluster configuration file (<node-name>.xml), under the controller section.
    SAP recommends that you use a relative path. To use an absolute path, first ensure that all cluster nodes can read and write to the absolute path you specify. This means that the location must be the same for all cluster nodes. You must also ensure that no two projects use the same path for the log store location. If using a shared disk is not possible, configure a strong affinity to ensure the project always runs on the same cluster node.
  3. Enter appropriate values for the remaining properties in the CREATE LOG STORE statement.
  4. Click Compile (F7).
  5. Click Run Project.