Skip to content

Instantly share code, notes, and snippets.

View achautha's full-sized avatar

Atharva Chauthaiwale achautha

View GitHub Profile
Sample content
Sample content
@achautha
achautha / undefined
Created June 13, 2021 17:35
new gist
Sample content
@achautha
achautha / hermes.md
Created June 13, 2021 13:31
the description for this gist

hello hermes

@achautha
achautha / kaprekar.py
Last active October 31, 2019 12:25
Kaprekar Constant
#!/usr/bin/python
import sys
def kaprekar_diff(n):
nlist = list(str(n))
if n < 1000:
if len(nlist) == 1:
nlist = nlist + list('000')
elif len(nlist) == 2:
nlist = nlist + list('00')
elif len(nlist) == 3:
@achautha
achautha / awslogs.md
Last active February 21, 2022 02:32
Monitor Docker container logs with AWS CloudWatch

Monitor Docker container logs with AWS CloudWatch

In this post, we are going to see how to monitor docker logs from AWS Cloudwatch logs. Docker supports different logging drivers one of which is awslogs

For this excersice, Docker container need NOT be running on EC2. We can send docker logs from anywhere to AWS.

Prerequisite

  • Ubuntu 14.04
  • Docker version 1.12 and above