Viewing log files
In Command Central, you can view the following log files for Apama component instances:

Log files from the 
instanceDir/logs directory and its subdirectories that have the following extensions:
 .log
.log .out
.out .err
.err OutputLog
OutputLog of any 
Apama component instance.
 InputLog
InputLog for the correlator instance (if available).
If two log files have the same file names, the logAlias of the second log file is prefixed with (1). For example:
outputLog=C:\output.log 
inputLog=C:\input\output.log 
# The log files are in different directories but have the 
# same file name. 
# The logAlias for these log files will be: 
# output.log for C:\output.log 
# (1)output.log for C:\input\output.log
You can view and download the log files in the web user interface using the Logs tab of an instance.
For information about viewing log files and log entries using the Command Central command line interface, see  Software AG Command Central Help.
Examples when executing on Command Central

To list the log files of a correlator instance with the runtime component ID "Apama-correlator-myCorrelator" from the installation with alias name "local":
sagcc list diagnostics logs local Apama-correlator-myCorrelator

To list the log files of an IAF instance with the runtime component ID "Apama-iaf-myIAF" from the installation with alias name "local":
sagcc list diagnostics logs local Apama-iaf-myIAF

To list the log files of a display server instance with the runtime component ID "Apama-displayserver-myDisplayServer" from the installation with alias name "local":
sagcc list diagnostics logs local Apama-displayserver-myDisplayServer

To list the log files of a data server instance with the runtime component ID "Apama-dataserver-myDataServer" from the installation with alias name "local":
sagcc list diagnostics logs local Apama-dataserver-myDataServer

To retrieve log entries from a log file of a correlator instance:
sagcc get diagnostics logs local Apama-correlator-myCorrelator Correlator.err

To retrieve log entries from the log file with file name "Apama-iaf-myIAF IAF.err" of the IAF instance with runtime component ID "Apama-iaf-myIAF" from the installation with alias name "local":
sagcc get diagnostics logs local Apama-iaf-myIAF IAF.err

To retrieve log entries from the log file with file name "DisplayServer.err" of the display server instance with runtime component ID "Apama-dataserver-myDataServer" from the installation with alias name "local":
sagcc get diagnostics logs local Apama-displayserver-myDisplayServer 
 DisplayServer.err

To retrieve log entries from the log file with file name "DataServer.err" of the data server instance with runtime component ID "Apama-dataserver-myDataServer" from the installation with alias name "local":
sagcc get diagnostics logs local Apama-dataserver-myDataServer DataServer.err

To export a zip file with the log files of a correlator instance with runtime component ID "Apama-correlator-myCorrelator" from the installation with alias name "local". The zip file includes log files with the names "Correlator.err" and "Correlator.out":
sagcc get diagnostics logs local Apama-correlator-myCorrelator 
 Correlator.err+Correlator.out export -o CorrelatorLog.zip

To export log files of a zip file with the log files of an IAF instance with runtime component ID "Apama-iaf-myIAF". The zip file includes log files with the names "IAF.err" and "IAF.out":
sagcc get diagnostics logs local Apama-iaf-myIAF IAF.err+IAF.out 
 export -o IAFLog.zip

To export log files of a zip file with the log files of a display server instance with runtime component ID "Apama-displayserver-myDisplayServer" from the installation with alias name "local". The zip file includes log files with the names "DisplayServer.err" and "DisplayServer.out":
sagcc get diagnostics logs local Apama-displayserver-myDisplayServer 
 DisplayServer.err+DisplayServer.out -o DisplayServerLog.zip

To export log files of a zip file with the log files of a data server instance with runtime component ID "Apama-dataserver-myDataServer" from the installation with alias name "local". The zip file includes log files with the names "DataServer.err" and "DataServer.out":
sagcc get diagnostics logs local Apama-dataserver-myDataServer 
 DataServer.err+DataServer.out -o DataServerLog.zip