cdk deploy
- You transform each log event within Lambda func.
- GUI
- go to Log Group
/aws/analysis/logs
- Create log event
ERROR: hello world
- go to Log Group
- AWS CLI
aws logs put-log-events --log-group-name /aws/analysis/logs --log-stream-name TestSubsctiptionFilter --log-events timestamp=$(date +%s000),message='ERROR: hello world'
- Base on the Firehose's buffer conditions, wait the log file move on the S3 Bucket.
- Could verify the log file by S3 Select.
- Athena query :
MSCK REPAIR TABLE rawdata;
- If fine, should get
Query successful.
response.- Jump to STEP_5
- If Not, will get like
Partitions not in metastore: rawdata:2021/04/12/03
- Go to STEP_4 to update the partition.
- Run Crawler: analysis-crawler
- Make sure the
analysis-crawler
is done.
- Athena query :
SELECT * FROM "analysis_database"."rawdata" limit 10;
- If you find the empty value, go to STEP_3 to check the partitions.
- You could integration QuickSight and Athena