Monitor applications with Log4j Appender for S3 and SQS

Sample Code & Libraries>Amazon S3>Monitor applications with Log4j Appender for S3 and SQS
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

Use lightweight Log4j appender for Amazon S3 to collect your application logs in one place, preview the last 2000 lines of logs right from the web and most important - monitor log stream and receive alerts. What can be better than this? Simply use the jar and configuration instructions.


Submitted By: Maxf
AWS Products Used: Amazon EC2, Amazon S3, Amazon SQS
Language(s): Java
License: Apache License 2.0
Source Control Access:
Created On: July 30, 2010 5:53 PM GMT
Last Updated: August 16, 2010 5:23 PM GMT

Please register at Cloud Governance Platform

We make use of SQS to push the logs through and monitor them as well.

Instructions on Using:

Add the following snippet to log4j.xml

For S3Log4jAppender:

For S3_SQS log4j appender:

sqsQueueName - Amazon SQS queue name(for storing logs)
awsAccessKeyId -
awsSecretAccessKey -
s3Path - is the S3 path where logs are uploaded
maxMessageCount - is the max message count for the local buffer(when the local buffer is full then all messages from this buffer are transferred to S3 system)
©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.