Giter Club home page Giter Club logo

journal2awsd's Introduction

journal2awsd

Simple systemd-journal to cloudwatch logs daemon.

This was tested in:

  • a local Arch Linux machine running systemd 243 (243.162-2-arch)
  • Ubuntu EC2 machines running systemd 237

The process executes journalctl and sends to Cloudwatch logs events every 10 new lines.

Usage

$ journal2awsd -h
Usage of journal2awsd:
  -dry-run
    	Set if you want to output messages to console. Useful for testing.
  -group string
    	Specify the log group where you want to send the logs
  -size int
    	Specify the number of events to send to AWS Cloudwatch. (default 10)
  -stream string
    	Specify the log stream where you want to send the logs
  -version
    	Set if you want to see the version and exit.

Run as a service

Two systemd unit files are provided.

  • Keep in mind that the binary journal2awsd must be available in the original PATH.
  • Copy the journal2awsd.service unit file in the /etc/systemd/system/ directory.
  • Run # systemctl daemon-reload
  • Run # systemctl start journal2awsd.service
  • Run # systemctl status journal2awsd.service

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.