AWS Elastic Beanstalk: Add custom logs to CloudWatch? : <p>How to add custom logs to CloudWatch? Defaults logs are sent but how to add a custom one?</p>

<p>I already added a file like this: (in .ebextensions) </p>

<pre><code>files:
  "/opt/elasticbeanstalk/tasks/bundlelogs.d/applogs.conf" :
    mode: "000755"
    owner: root
    group: root
    content: |
      /var/app/current/logs/*

  "/opt/elasticbeanstalk/tasks/taillogs.d/cloud-init.conf" :
    mode: "000755"
    owner: root
    group: root
    content: |
      /var/app/current/logs/*
</code></pre>

<p>As I did bundlelogs.d and taillogs.d these custom logs are now tailed or retrieved from the console or web, that's nice but they don't persist and are not sent on CloudWatch.</p>

<p>In CloudWatch I have the defaults logs like<br>
 <code>/aws/elasticbeanstalk/InstanceName/var/log/eb-activity.log</code><br>
And I want to have another one like this<br>
<code>/aws/elasticbeanstalk/InstanceName/var/app/current/logs/mycustomlog.log</code></p>
