-
Notifications
You must be signed in to change notification settings - Fork 9
Apis what should i log
Onorio Catenacci edited this page Jul 31, 2013
·
10 revisions
Onorio Catenacci (@OldDutchCap)
- Debugging
- Measure Usage
- Auditing
- Throttling
- Defects
- Security
- Authentication
- General Stats
- Legal
- Built-In vs. Custom
- IP Address
- Headers
- Time Stamp
- Status Code
- URL
- Stack trace if possible
- Code from which the message is being generated
- Module
- Line
- Be careful not to log too much--if you log information you don't need, you'll get overwhelmed by unimportant details
- Some data should not be logged; confidential e.g. access tokens.
Googling for "Open Source Splunk" and you'll turn up lots of good tools
- [l2met] (https://github.com/ryandotsmith/l2met)
- [pingdom] (http://www.pingdom.com)
- [splunk] (http://www.splunk.com)
- [fluentd] (http://fluentd.org/)
- [papertrail] (https://papertrailapp.com/)
- [librato] (https://metrics.librato.com/)
- We want to build our logging tools so they can emit logs that can easily be machine parseable.
- Probably 7 days (or less if you have high volumes of data)
- After that point, goes into archival storage
[log2viz: Logs as Data for Performance Visibility] (https://blog.heroku.com/archives/2013/3/19/log2viz)