Hi Instead of log4j2 appender, i have installed aws cloudwatch agent on ec2 instance and pushed spark application logs on ec2 instance to Cloudwatch.