Giter Site home page Giter Site logo

go-forward's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-forward's Issues

Add SIGINT handling.

When SIGINT is received, program should:

  • stop listening for new messages
  • send all messages in buffers to their destinations

Dependency pinning

We need to pin dependencies in some way in order to have same dependency version across builds.

One uploader at a time.

Cloudwatch logs have certain constraints for putLogEvents action:

  • 200ms delay between putLogEventsDelay call.
  • sequenceToken must change in order to successfully send messages. Otherwise DataAlreadyAcceptedException is returned as an error.
  • sequenceToken is assigned for each log stream.

Problem:
How to run a goroutine and know when it finished ?

Configurable message format.

As syslog messages are sent / forwarded with different fields and formats, config option providing message format is essential.
Assumptions:

  • message format is known
  • program is only interested in user defined fields
  • fields are parsed

This may be implemented using parser.

Clarify the default config file location

In README.md:

      Config file location. (default "/etc/logs_agent.cfg")

In main.go:

const defaultConfigFile = "/etc/awslogs.conf"
[...]
	flag.StringVar(&cfgfile, "c", defaultConfigFile, "Config file location.")

Which should be used?

I have seen /etc/awslogs.conf used by a different package with a different content, probably /etc/logs_agent.cfg is more unique. Or name it /etc/go_forward.cfg?

Message formatters.

Formatting a message before sending it may be useful e.g. remove facility and severity because there is no need to store it. Timestamps should always be removed since they are already stored in cloudwatch logs.

Possible implementations:

Multiple parsers support

Depending on receiver, messages may arrive in different formats. We should support formats for different kinds of messages.

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.