Firefox/Services/Logging: Difference between revisions

Jump to navigation Jump to search
(Created page with "= Firefox Services Logging Standard = A standard logging scheme for all firefox services that participate in data services (logging pipeline, hindsight alerting, elastic sear...")
 
Line 5: Line 5:
= Format =
= Format =


* A Heka protobuf encoding is ideal from a performance perspective:https://github.com/mozilla-services/heka/blob/dev/message/message.proto
* A Heka protobuf encoding is ideal from a performance perspective: [https://github.com/mozilla-services/heka/blob/dev/message/message.proto Heka protobuf definition], [https://github.com/mozilla-services/lua_sandbox/blob/master/src/util/heka_message.c Hindsight version]
* JSON is a reasonable alternative (and currently used by most of our servers); [[#JSON log schema]]
* JSON is a reasonable alternative (and currently used by most of our servers); [[#JSON log schema]]
* Data is consumed by Heka on STDOUT or STDERR streams. For servers logging JSON, non JSON data will be ignored. Some logging packages prefix the timestamp; this can be worked around but is not ideal. 
* Data is consumed by Heka on STDOUT or STDERR streams. For servers logging JSON, non JSON data will be ignored. Some logging packages prefix the timestamp; this can be worked around but is not ideal. 
Confirmed users
529

edits

Navigation menu