Amazon Web Services (AWS) - Cloud Log Collection Configuration
- 1 Introduction
- 2 Overview
- 3 Setup Supported AWS Services to Send Log to CloudWatch Logs
- 4 Setting Up AWS Kinesis Data Stream
- 5 Setting Up AWS CloudWatch Logs Subscription Filter
- 6 Setting Up Snare Central - Amazon Web Services(AWS) Cloud Log Collection
- 7 Updating/Deleting - AWS Cloud Log Collection Configuration
- 8 Troubleshooting Guide
Introduction
Amazon Web Services (AWS) stands as a prominent cloud provider, offering an array of services that generate valuable log data crucial for monitoring, security, and compliance in modern IT ecosystems. This guide will assist you in configuring Snare Central for the task of collecting and processing logs via the AWS Kinesis Data Stream.
Note
This setup guide will cover only the basic required setup for the SNARE - AWS Cloud log collection to work, security related setup, charges you may incur and other intricacies related to AWS will not be covered on this guide.
Please refer to official AWS documentation for detailed information related to AWS.
Overview
In today's data-driven landscape, efficiently managing log data is imperative. AWS services, such as AWS CloudTrail, AWS Web Application Firewall (WAF), and AWS VPC Flow Logs, generate a wealth of log information during their operations. This services can be configured for their logs to be routed to AWS CloudWatch Logs, functioning as an initial repository.
However, the process doesn't stop there. AWS CloudWatch Logs can employ subscription filters to selectively forward or aggregate specific log data into AWS Kinesis Data Streams. These streams serve as dynamic conduits, ensuring real-time or near-real-time access to log data.
Enter Snare Central, a powerful log collection solution. Configured to periodically access AWS Kinesis Data Streams via the Kinesis Data Streams API, Snare Central automates the collection process, for a continuous flow of log data into its centralized repository and/or reflecting them to another Snare Central server, or to a third party SIEM server or collector.
Setup Supported AWS Services to Send Log to CloudWatch Logs
Amazon CloudWatch Logs enables you to centralize the logs from all of your systems, applications, and AWS services that you use. CloudWatch Logs enables you to see all of your logs, regardless of their source, as a single and consistent flow of events ordered by time.
Currently Snare Central support logs from the following AWS Services:
AWS CloudTrail
AWS Web Application Firewall (WAF)
AWS VPC Flow Logs
Note
For CloudTrail setup guide, please refer to AWS official documentation: Sending Events to CloudWatch Logs - CloudTrail
For WAF setup guide, please refer to AWS official documentation: Sending Events to CloudWatch Logs - WAF
For VPC Flow Logs setup guide, please refer to AWS official documentation: Sending Events to CloudWatch Logs - VPC Flow Logs
Setting Up AWS Kinesis Data Stream
Amazon Kinesis Data Streams ingests a large amount of data in real time, durably stores the data, and makes the data available for consumption. The unit of data stored by Kinesis Data Streams is a data record. A data stream represents a group of data records. The data records in a data stream are distributed into shards.
Note
A shard has a sequence of data records in a stream. It serves as a base throughput unit of a Kinesis data stream. A shard supports 1 MB/s and 1000 records per second for writes and 2 MB/s for reads in both on-demand and provisioned capacity modes
For more information, please refer to AWS official documentation: Amazon Kinesis Data Streams
Also refer to: Amazon Kinesis Data Streams Pricing for more information on the possible charges you may incur.
Setting Up AWS CloudWatch Logs Subscription Filter
You can use subscriptions to get access to a real-time feed of log events from CloudWatch Logs and have it delivered to other services such as an Amazon Kinesis Data Stream for custom processing, analysis, or loading to other systems.
Setting Up Snare Central - Amazon Web Services(AWS) Cloud Log Collection
Starting from Snare Central v8.6.0, AWS Cloud Log Collection functionality will be available as long as you have the proper license for it. This guide will help you setup up your Snare Central and start collecting supported AWS logs in no-time by simply using the intuitive Cloud Log Collection Configuration Web UI of Snare Central.
Updating/Deleting - AWS Cloud Log Collection Configuration
If you want to update or delete an existing Amazon Web Services - Cloud Log Collector that were previously configured, you can simply use the Snare Central’s Cloud Log Collection Configuration Web UI and follow the simple steps below.
Troubleshooting Guide
This guide will be your resource for resolving common issues and challenges that you may encounter with Amazon Web Services (AWS) - Cloud Log Collection.
Amazon Web Services icon is gray in System > Administrative Tools > Cloud Log Collection Configuration Web UI.
AWS Cloud Log Collector icon is gray and the Status is Not Running (Disabled by configuration)
AWS Cloud Log Collector icon is red and the Status is Not Running (The security token included in the request is invalid.)
AWS Cloud Log Collector icon is red and the Status is Not Running (The request signature we calculated does not match the signature you provided.)
AWS Cloud Log Collector icon is red and the Status is Not Running (Post "https://kinesis.us-east-11.amazonaws.com": dial tcp: lookup kinesis.us-east-11.amazonaws.com: no such host)
AWS Cloud Log Collector icon is red and the Status is Not Running (Stream <streamname> under account <account number> not found.)
AWS Cloud Log Collector takes too long to get new logs.
AWS Cloud Log Collector did not collect the old logs in AWS Kinesis Data Stream.