hands-on lab

Collecting Log Data with Kinesis Agent and Querying with Amazon Athena

Beginner
1h 30m
1,133
4.1/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

Amazon Kinesis Agent is an application that continuously monitors files and sends data to a Amazon Kinesis Data Firehose Delivery Stream or a Kinesis Data Stream. The agent handles rotating files, checkpointing, and retrying upon a failure.

The primary use-case for Kinesis agent is log collection, it's designed to deliver your data quickly and reliably, and also integrates with Amazon CloudWatch to enable you to monitor the health of, and failures in, the streaming process.

In this lab, you will install and configure Kinesis Agent, use it to collect log entries, and query the log entries with Amazon Athena.

Learning Objectives

This is a beginner-level lab. Upon completion of this lab you will be able to:

  • Create a Kinesis Firehose Delivery Stream to deliver data to an S3 bucket
  • Install and configure the Kinesis Agent on a Linux EC2 instance to send data to your delivery stream
  • Query your log data stored in S3 using Amazon Athena

Intended Audience

  • Candidates for the AWS Data Analytics Speciality Certification
  • Data Engineers
  • Cloud Engineers

Prerequisites

Familiarity with Analytics in AWS and the Linux command-line will be beneficial but is not required.

The following courses can be used to fulfill the prerequisites:

Updates

February 20th, 2024 - Updated screenshots & instructions to reflect the latest UI

April 25th, 2023 - Updated screenshots & instructions to reflect the latest UI

November 27th, 2022 - Updated screenshots & instructions to reflect the latest UI

June 23rd, 2022 - Resolved an issue with the last lab step and improved instructions

May 2nd, 2022 - Updated instructions and screenshots for accuracy

February 14th, 2022 - Updated the instructions and screenshots to reflect the latest Athena UI

December 21st, 2021 - Fixed an issue preventing the Kinesis Agent from being installed

Environment before
Environment after
About the author
Avatar
Andrew Burchill
Labs Developer
Students
65,127
Labs
160
Courses
2
Learning paths
4

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.

Covered topics
Lab steps
Logging In to the Amazon Web Services Console
Creating a Kinesis Firehose Delivery Stream
Connecting to the Virtual Machine using EC2 Instance Connect
Installing and Configuring the Kinesis Agent Application
Querying the Log Data using Amazon Athena