Options for managing log and trace data for Teracloud® Streams

Teracloud® Streams provides options that enable administrators, instance owners, and application developers to manage log and trace data.

The following table lists the main logging and tracing tasks, and the Teracloud® Streams interfaces that you can use to perform the tasks.

Table 1. Summary of log and trace tasks and interfaces for Teracloud® Streams
Task Teracloud® Streams interface information
Develop applications to use logging and tracing macros
Application developers can use the following mechanisms to create entries in log and trace files:
  • Streams Processing Language (SPL) - Use the appLog and appTrc functions. For more information, see appLog and appTrc.
  • C++ operators - Use the SPLAPPLOG and SPLAPPTRC macros. For more information about using the SPLAPPLOG and SPLAPPTRC macros, see Logging and tracing.
  • Java operators - Use either Java or Log4j Loggers. For more information, see the logging or log4j package descriptions.
Customize log and trace settings

Instance owners can use the streamtool command-line interface or the Streams Console to customize log and trace settings. For more information, see Customizing logging and tracing for Teracloud® Streams.

Collect and view log and trace data
Administrators, instance owners, and application developers can use the streamtool command-line interface or the Streams Console to collect and view log and trace data.
  • streamtool - Use the getlog command. See the streamtool getlog reference.
  • Streams Console - Management dashboard users can download Domain logs by clicking the Download Domain Logs link in the resource explorer. Instance users can view logs via the Log Viewer page.
Remove log and trace data Instance owners can use the streamtool cleanlog command to remove log and trace data. See the streamtool cleanlog reference.