title: AWS CloudWatch Logs to ELK
body: <p>I am planning to copy  the AWS CloudWatch Logs to ELK and want to use Kibana Dashboard to visualise the logs.</p>
  
  <p>One option is to stream the logs from CloudWatch to ELK.</p>
  
  <p><a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_ES_Stream.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_ES_Stream.html</a></p>
  
  <p>But I feel this will involve execution of Lambda functions extensively and it might not be a cost effective option.</p>
  
  <p>Is there any other cost effective way to copy logs from CloudWatch to maybe S3 and then to ELK?</p>
  
  <p>I am Ok, if the logs are not realtime, maybe a delay of 15 mins or maybe one hour is OK.</p>
  
  <p>But I am looking for a cost effective solution.</p>
  
  <p>Btw, what is the best way to purge the CloudWatch logs periodically? ( maybe after one week)</p>