Implementing log forwarding
Log forwarding is a mechanism where logs are forwarded from their source to another repository to be analyzed further. It is common to see customers using centralized logging solutions on-premise and/or in the cloud. AWS offers Amazon CloudWatch, a complete monitoring and logging suite, a highly available and managed service that you can use to collect and visualize logs, metrics, and events in real time from different sources. Amazon CloudWatch Logs is the solution in the suite that offers centralized logging capabilities, and it is mainly composed of two components:
- Log stream: This is a sequence of log events that share the same source, for instance, a collection of Windows containers that runs the same application.
- Log group: This is a log stream collection that shares the same retention, monitoring, and access control settings.
Figure 11.3 shows an example of Application XYZ comprising different services, such as IIS, NGINX, and Windows...