Ship Laravel Logs to CloudWatch in 2 Days with aws-cloudwatch-logger & Metric Filters
Job Overview
Budget
$1,100.00Level
MidLevelLocation
AustraliaJob Posted
26 Sep, 2025Category
DevOpsTotal Proposals
0Job Description
Problem you’re facing:
Your Laravel app writes daily laravel.log on disk; when a bug occurs you SSH into the server, tail -f the file and grep for errors. You have no central logs, no alerts, no metrics and no retention policy. Support team wants Slack alerts on ERROR level and daily CSV of 404 counts.
What I will do for you (step-by-step):
- Create IAM role with CloudWatchLogsFullAccess and attach to EC2 instance profile.
- Install aws-cloudwatch-logger package via Composer and publish config.
- Add CloudWatch channel to config/logging.php (group=/laravel/prod, stream=app).
- Configure monolog formatter to include request_id, user_id, memory_peak.
- Create metric filter ERROR → namespace Laravel/Prod, metric ErrorCount.
- Create metric filter 404 → metric NotFoundCount.
- Add CloudWatch alarm ErrorCount > 10 in 5 min → SNS → Slack #ops.
- Set 14-day retention on log group and export to S3 (parquet) for Athena.
- Provide 1-page guide for adding custom metrics later.
Deliverables:
- IAM role JSON, config/logging.php patch, .env example.
- CloudWatch dashboard JSON (error rate, 404 count, memory peak).
- Slack screenshot showing alert.
- CSV export sample from Athena.
Business value:
Support team sees real-time errors in Slack; developers query logs via CloudWatch Insights without SSH; audit team gets 14-day retained logs for compliance.
Why choose me (MidLevel):
- AWS Cloud Practitioner certified; 30+ CloudWatch integrations.
- Average response <2 h; 7-day free support if alarms misfire.
- Give you Terraform code if you want to replicate in staging.
Skills
- Monitoring and logging
Tags
Author Spotlight
Michael O'Connor
Client
No description available.
Related Jobs
We are seeking a Security Information and Event Management (SIEM) Analyst to set up and manage SIEM solutions for compre...
We are seeking a Container Security Specialist to secure our containerized applications, ensuring each component is isol...
We are looking for a DevSecOps Engineer to integrate security into every stage of our software development lifecycle (SD...
We are hiring a Microservices Security Consultant to implement and manage security protocols for our microservices archi...
Michael O'Connor
Australia
Join as a freelancer or client
Join as a Freelancer
Join as a Client