How Are Structured Logs Different From Events?
Blog post from Honeycomb
The text explores the nuanced definitions and distinctions between events and structured logs within the context of observability, often referred to as "o11y." While all events can be represented as structured logs, not all structured logs qualify as events. Logs are collections of messages, sometimes structured with formats like JSON, conveying information about system operations. An event, however, encapsulates detailed information about what it takes for a service to perform a unit of work, including input data, computed attributes, service conditions, and outcomes. The text illustrates these concepts with examples from HTTP transactions and web server access logs, emphasizing that events are conceptual abstractions, whereas structured logs are one representation of those abstractions. It concludes by encouraging further discussion to better define these terms and suggests using Honeycomb for visualizing events.