Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Centralize Logging Multi AWS Accounts

Centralize Logging Multi AWS Accounts

Zamira Jaupaj

September 29, 2019
Tweet

More Decks by Zamira Jaupaj

Other Decks in Programming

Transcript

  1. Network logs Flow Logs Infrastrutture logs CloudTrail Amazon S3 ELB/ALB

    Lambda Kinesis Host based logs Application Logs Windows Events Logs Database Logs Security Logs Third party logs …. What kind of logs you are collecting?
  2. Collect Logs in Source Account Source Amazon EC2 Amazon RDS

    Amazon ElastiCache Amazon DocumentDB AWS Lambda Amazon API Gateway AWS IoT Amazon CloudWatch SERVICE IAM ROLE CROSS-ROLE IAM CLOUDWATCH SUBSRIPTION IAM Role
  3. Stream Log Cross-Accounts Account A Account B Account Z CloudWatch

    Subscription Data Stream Firehose Transformation Storage in s3 Central Account ES
  4. Real-time analytics in Central log Account Data Stream Kinesis Data

    Analytics: Time window aggregation Kinesis Data Firehose: Error stream S3: Error records Record from Source Account Lambda: Alert function DynamoDB SNS: Notifications Log Destination
  5. IDEs Languages AWS Cloud9 AWS Toolkit for PyCharm AWS Toolkit

    for IntelliJ AWS Toolkit for VS Code AWS Nested apps Websocket support for API Gateway ALB support for Lambda Programming Model AWS Lambda layers Workflows Step Functions API Connectors Amazon Managed Streaming for Kafka Build increasingly powerful applications,faster
  6. BUSINESS LOGIC LIB A LIB B BUSINESS LOGIC LIB A

    LIB B BUSINESS LOGIC LIB A LIB B BUSINESS LOGIC LIB A LIB B Before BUSINESS LOGIC BUSINESS LOGIC BUSINESS LOGIC BUSINESS LOGIC LIB A LIB B After Programming Model Lambda Layers Extend the Lambda execution environment with any binaries, dependencies, or runtimes
  7. Streaming with Amazon Kinesis Collect, process, and analyze video and

    data streams in realtime Kinesis Data Firehose SQL Kinesis Data Analytics Kinesis Data Streams Kinesis Video Streams
  8. Streaming dataingestion Amazon S3: Buffered files Kinesis Agent Record producers

    Amazon Redshift: Table loads Amazon Elasticsearch Service: Domain loads Amazon S3: Source record backup Transformed records Put Records Kinesis Firehose: Delivery stream AWS Lambda: Transformations & enrichment Amazon DynamoDB: Lookup tables Raw Lookup Transformed
  9. Kinesis Bestpractices Tune Firehose buffer size and buffer interval •

    Larger objects = fewer Lambda invocations & Amazon S3 PUTs Enable compression to reduce storage costs Enable Parquet format transformation (columnar) Enable Encryption with KMS Enable Source Record Backup for transformations • Recover from transformation errors
  10. CloudTrail Benefits • Reduce the risck for a long tampering

    • Combination with Amazon s3 Enable CloudTrail Cross-Regions Enable log file Validation Encrypted with KMS Integration with CloudWatch
  11. Benefits of Amazon ElastiSearch Service Highly Scalable Secure Easy to

    use Highly Available Support open Source API Integrated with other AWS Services Use Case • Troubleshooting • Root cause analysis • Application performance management • Security intelligence • Applicating trucking • Business analytics
  12. Processing real-time streaming data Data Source Ingest Analyse Query Customer

    Data Source Ingest Analyse Query Customer Data Source Ingest Analyse Query Customer
  13. Processing real-time streaming data Query Customer Analyse Data Source Ingest

    Data Source Ingest Data Source Ingest Query Customer Query Customer
  14. Real-time analytics Data Stream Kinesis Data Analytics: Time window aggregation

    Kinesis Data Firehose: Error stream S3: Error records Record producers Lambda: Alert function DynamoDB SNS: Notifications