Coder Social home page Coder Social logo

python-logging's Introduction

Python Logging

This is a Docker (with docker-compose) environment for Python Logging (AWS Opensearch and CloudWatch)

Python Logging Graph

Installation

  1. First, clone this repository:
$ git clone https://github.com/nietzscheson/python-logging
  1. Copy the environment vars and set the AWS credentials:
$ cp .env.dist .env
  1. Init project
$ make
  1. Show containers:
$ make ps

This results in the following running containers:

> $ docker-compose ps
        Name                       Command               State                                 Ports
-----------------------------------------------------------------------------------------------------------------------------------
opensearch              ./opensearch-docker-entryp ...   Up      0.0.0.0:9200->9200/tcp, 9300/tcp, 0.0.0.0:9600->9600/tcp, 9650/tcp
opensearch-dashboards   ./opensearch-dashboards-do ...   Up      0.0.0.0:5601->5601/tcp
py                      python3                          Up
  1. Before inserting data into Opensearch, make sure it is working by going to https://localhost:5601:

  2. To shipping logs in Opensearch (In order to look at the data, you must create an index (with opensearch) and then a dashboard in the Discover tab):

$ make ingest.opensearch

Opensearch Logs

  1. To shipping logs in AWS CloudWatch:
$ make ingest.cloudwatch

Cloudwatch Logs

References

python-logging's People

Watchers

James Cloos avatar Cristian Angulo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.