title: Cloudwatch logs only updates on deploy
body: <p>I have a single container on elastic beanstalk.
  It's a .net core 2.2 application deployed with a docker container running microsoft/dotnet:2.2-aspnetcore-runtime.</p>
  <p>I've been trying to setup logging to cloudwatch, and I went into
  Elastic Beanstalk -&gt; Environments -&gt; my-environment -&gt; Configuration
  and enabled &quot;log streaming&quot; (rotate logs is disabled)</p>
  <p>I could now see my log's in cloudwatch, and I can see the log statements from my application in:
  /aws/elasticbeanstalk/my-environment/var/log/eb-docker/containers/eb-current-app/stdouterr.log</p>
  <p>The problem is, that they are never updated. The only time more data is put into the logs, is if I redeploy the application (even after 12H, there's still nothing new in the logs).</p>
  <p>I've tried adding a file:
  .ebextensions/logs.config with the content:</p>
  <pre><code>option_settings:
  - namespace: aws:elasticbeanstalk:cloudwatch:logs
  option_name: StreamLogs
  value: true
  - namespace: aws:elasticbeanstalk:cloudwatch:logs
  option_name: DeleteOnTerminate
  value: false
  - namespace: aws:elasticbeanstalk:cloudwatch:logs
  option_name: RetentionInDays
  value: 7
  </code></pre>
  <p>But it's the same. The content in the logs is only updated when I redeploy the application.
  Secondly, I followed this:
  <a href="https://stackoverflow.com/questions/41979394/elastic-beanstalk-single-container-docker-use-awslogs-logging-driver">Elastic Beanstalk Single Container Docker - use awslogs logging driver</a></p>
  <pre><code>option_settings:
    - namespace: aws:elasticbeanstalk:cloudwatch:logs
      option_name: StreamLogs
      value: true
    - namespace: aws:elasticbeanstalk:cloudwatch:logs
      option_name: DeleteOnTerminate
      value: false
    - namespace: aws:elasticbeanstalk:cloudwatch:logs
      option_name: RetentionInDays
      value: 14
  
  files:
    &quot;/etc/awslogs/config/stdout.conf&quot;:
      mode: &quot;000755&quot;
      owner: root
      group: root
      content: |
        [/var/log/containers/docker-stdout]
        log_group_name=/aws/elasticbeanstalk/`{ &quot;Ref&quot; : &quot;AWSEBEnvironmentName&quot; }`/docker-stdout.log
        log_stream_name={instance_id}
        file=/var/log/containers/*-stdouterr.log
  
  commands:
    &quot;00_restart_awslogs&quot;:
      command: service awslogs restart
  </code></pre>
  <p>What am I missing? There isn't a lot of traffic on the site, but shouldn't the logs be updated at least every 5 minutes or so?  I've been reading about file_fingerprint_lines and setting awslogs as driver on docker, but can't seem to get any of that to work.</p>
  <p>I don't have much experience with EBS or Cloudwatch, so any help is highly appreciated. One of the problems is, that I don't really know where to look for debugging this</p>