Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reads #1

Open
prayagupa opened this issue Mar 22, 2017 · 0 comments
Open

Reads #1

prayagupa opened this issue Mar 22, 2017 · 0 comments

Comments

@prayagupa
Copy link
Owner

prayagupa commented Mar 22, 2017

Logging a service

  • eventId
  • timestamp
  • eventtype(Processing, Transforming, Responding)
  • whole cause

https://twitter.com/kenny_baas/status/844450238987415552

eventtypes to log

Request
EventProcessed
EventProcessingFailed or MyApplicationException1
TimeTaken
Response

https://logging.apache.org/log4j/2.x/manual/appenders.html

Errors to alert on

MyApplicationException1 (could not write to stream)
MyApplicationException2 (RuntimeTransformationError)

ClientException(bad request) - low priority

Store log-events in some sort of storage like Elasticsearch, MongoDB where you can query
to make sure for particular eventId, things are working fine or there's error.

https://github.com/nihil-os/log4j2-elasticsearch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant