The Sitecore Log Analyzer is a really useful tool for analysing Log files
produced by a Sitecore application. It can scan multiple log files and group
errors by severity, monitor performance counters and get a visual overview of
website uptime and downtime intervals.
The following Powershell script downloads log entries that are stored in
AWS CloudWatch Logs and produces log files which are compatible with
the Sitecore Log Analyzer.
Example script usage to download log entries from the 30th December 2015:
As per the AWS Powershell documentation for Get-CWLLogEvents, the response
has a maximum size of 1MB or 10,000 log events so multiple log files will be created
in a subfolder called Logs relative to where the script is being run.
Once the script has finished executing, the Sitecore Log Analyzer can be used as
normal by analysing the Logs folder created, e.g.