Ship Laravel Logs to CloudWatch in 2 Days with aws-cloudwatch-logger & Metric Filters

Job Overview

Budget

$1,100.00

Level

MidLevel

Location

Australia

Job Posted

26 Sep, 2025

Category

DevOps

Total Proposals

0

Job 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

Monitoring and logging

Author Spotlight

Michael O'Connor

Michael O'Connor

Client

No description available.

Related Jobs

1 year ago Senior
$70.00 Hourly

We are seeking a Security Information and Event Management (SIEM) Analyst to set up and manage SIEM solutions for compre...

Log aggregation and analysis
View More
1 year ago MidLevel
$70.00 Hourly

We are seeking a Container Security Specialist to secure our containerized applications, ensuring each component is isol...

Containerization technologies (e.g., Docker, Kubernetes)
View More
1 year ago Senior
$75.00 Hourly

We are looking for a DevSecOps Engineer to integrate security into every stage of our software development lifecycle (SD...

CI/CD security and best practices
View More
1 year ago Junior
$75.00 Hourly

We are hiring a Microservices Security Consultant to implement and manage security protocols for our microservices archi...

Microservices security
View More
Michael O'Connor

Michael O'Connor

Australia


Member Since
Aug 05, 2025
Total Created Jobs
5