Skip to content

AWS EFS Logging

0

I have two EFS entities. I have created a log group inside CloudWatch but still empty (no stream). How to relay all EFS logs into the log group? The ultimate goal is to monitor the logs especially when throughput % goes high.

I have tried the following command but failed:

aws efs update-file-system --file-system-id <ID> --logging-configuration '{"FileAccessLogDestination": <log group ID>, "FileAccessLogDestinationType":"CloudWatchLogs", "FileAccessLogFormat":"TEXT"}'

1 Answer
1
Accepted Answer

Hi ,

As your goal is to monitor the EFS for throughput. this can be monitored using the cloudwatch metrics. Refer to this documentation for the metrics already available https://docs.aws.amazon.com/efs/latest/ug/efs-metrics.html

You can access the metrics in 2 ways.

  1. From the EFS console, under the filesystem -> monitoring tab
  2. From the Cloudwatch console, under Metrics -> choose EFS namespace and you will find your filesystem

Refer to this document for detailed steps to access your EFS metrics https://docs.aws.amazon.com/efs/latest/ug/accessingmetrics.html

If you would like to get alerts, then configure cloudwatch alarms with thresholds for the metrics so it will send alerts using SNS subscriptions.

If you feel this response helps you, then "accept the answer" so the community get benefit. Thank you !

AWS
answered 3 years ago
  • Thank you Gokul! But I wish that EFS would send logs to a log group inside CloudWatch. That's why I am trying to configure it using a CLI

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.