<?xml version="1.0" encoding="utf-8"?> 
<rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:atom="http://www.w3.org/2005/Atom">

<channel>

<title>Discover Docker, K8s and Hashicorp Nomad with Maksym Prokopov: posts tagged cloudwatch</title>
<link>https://blog.it-premium.com.ua/tags/cloudwatch/</link>
<description>The blog about containerisation, virtual machines and useful shell snippets and findings</description>
<author></author>
<language>en</language>
<generator>Aegea 11.3 (v4134)</generator>

<itunes:subtitle>The blog about containerisation, virtual machines and useful shell snippets and findings</itunes:subtitle>
<itunes:image href="" />
<itunes:explicit></itunes:explicit>

<item>
<title>Stream docker container logs to the AWS CloudWatch</title>
<guid isPermaLink="false">213</guid>
<link>https://blog.it-premium.com.ua/all/stream-docker-container-logs-to-the-aws-cloudwatch/</link>
<pubDate>Tue, 10 Mar 2020 19:31:28 +0100</pubDate>
<author></author>
<comments>https://blog.it-premium.com.ua/all/stream-docker-container-logs-to-the-aws-cloudwatch/</comments>
<description>
&lt;ol start="1"&gt;
&lt;li&gt;Configure a role for EC2 instance with permissions to write to the CloudWatch.&lt;/li&gt;
&lt;li&gt;Assign that role to EC2 instance with docker.&lt;/li&gt;
&lt;li&gt;Open CloudWatch and create docker-logs logging group.&lt;/li&gt;
&lt;li&gt;Login into EC2 node and create file&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;{
  &amp;quot;log-driver&amp;quot;: &amp;quot;awslogs&amp;quot;,
  &amp;quot;log-opts&amp;quot;: {
   &amp;quot;awslogs-group&amp;quot;: &amp;quot;docker-logs&amp;quot;
  }
}&lt;/code&gt;&lt;/pre&gt;&lt;ol start="4"&gt;
&lt;li&gt;Restart docker with&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;systemctl restart docker&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That’s it.&lt;/p&gt;
&lt;ol start="5"&gt;
&lt;li&gt;Go to the CloudWatch group and check logs, everything should be there :)&lt;/li&gt;
&lt;/ol&gt;
</description>
</item>


</channel>
</rss>