Events in Axiom
This page explains the fundamentals of event data in Axiom.
In Axiom, event data is the atomic unit of activity, encompassing logs, traces, and even product interactions. Each event is simply a structured record—composed of key-value pairs—that captures meaningful interactions or changes in state within a system. While these can appear in various forms, from log lines to complex traces, they usually contain the following:
- Timestamp: When the event occurred.
- Attributes: A set of key-value pairs offering details about the event context.
- Metadata: Contextual labels and IDs, such as trace ID and span ID, that connect related events.
Rather than simply calling them logs or metrics, event data reflects a broader range of interactions, crossing boundaries from engineering to product management, security, and beyond. This includes everything from the number of documents created in a product to the sequence of API calls during a checkout process.
A brief history and evolution
To understand Axiom’s focus on event data, consider how logging evolved:
- Legacy Logging: In the early days, logs consisted of unstructured text fields, with key details crammed into free-form strings. Engineers would SSH into servers to view these logs individually.
- Structured Logging: Over time, logs moved to structured formats like JSON, making them machine-readable and scalable. Key-value pairs replaced arbitrary text, and a consistent schema enabled collaboration and integration with monitoring tools.
- Modern Distributed Systems: With services becoming distributed, new fields like trace ID and span ID emerged, allowing engineers to track events across interconnected services. This evolution transformed logs from isolated lines to holistic views of entire workflows.
Axiom builds on this history by storing these logs, traces, and metrics efficiently, ensuring they remain accessible for real-time insights.
Event data across business functions
Event data isn’t limited to technical logs. It extends to other business functions as well:
- Engineering: Engineering logs capture real-time health and state data across applications. Log events, error traces, and performance metrics help pinpoint issues in microservices, whether it’s a spike in CPU usage or an auth failure.
- Product: Product teams analyze user interactions by capturing product events. Each event could represent user actions, like document creation in Notion, revealing how users engage with a product.
- Security: Security teams monitor events such as firewall logs, login attempts, and policy violations, ensuring compliance and threat detection.
- Marketing: Marketing collects data on clicks, ad engagement, and conversion rates. Events allow marketing teams to quantify and analyze the effectiveness of campaigns.
While engineering logs might focus on error IDs and stack traces, product logs could capture user IDs, event names, and specific interactions. In all cases, events remain collections of timestamped key-value pairs, making them universally usable and efficient to store and retrieve.
Why use event data?
Event data is the heartbeat of modern, data-driven organizations, serving purposes that traditional data stores can’t fully support:
- Real-time insight: Timestamped event data provides a moment-by-moment look at system operations, allowing quick identification of issues.
- Root cause analysis: By tracking the “why” behind “what” of record-based databases (like those in traditional analytics systems), event data can answer questions such as “Why did customers abandon their checkout?”
- Predictive analytics: Event data holds the key to anticipating trends and outcomes, whether forecasting resource usage or identifying customer behavior patterns.
- Unified observability: Event data seamlessly supports logs, traces, and metrics in one view, enabling a unified approach to observability across domains.
Logs, traces, and metrics
Traditionally, observability has been associated with three pillars, each effectively a specialized view of event data:
- Logs: Logs record discrete events, such as error messages or access requests, typically associated with engineering or security.
- Traces: Traces track the path of requests through a system, capturing each step’s duration. By linking related spans within a trace, developers can identify bottlenecks and dependencies.
- Metrics: Metrics quantify state over time, recording data like CPU usage or user count at intervals. Product or engineering teams can then monitor and aggregate these values for performance insights.
However, modern observability expands on this by aggregating diverse data types from engineering, product, marketing, and security functions, all of which contribute to understanding the deeper “why” behind user interactions and system behaviors. This holistic view, in turn, enables real-time diagnostics, predictive analyses, and proactive issue resolution.
In Axiom, these observability elements are stored as event data, allowing for fine-grained, efficient tracking across all three pillars.
Value of capturing all events
Traditional data storage often requires aggressive sampling, filtering, and aggregation, discarding valuable details to save space. Axiom, however, optimizes data storage so you can capture and retain every event. This approach enables:
- Comprehensive analysis: Retaining granular event data means you can trace even minor or rare occurrences that contribute to larger trends.
- Detailed audits: From compliance to usage reporting, comprehensive event retention allows exhaustive record-keeping without added cost.
- Unmatched flexibility: Full event history empowers teams to adapt analyses and queries over time, offering a complete look at past data.
Why Axiom for event data?
Axiom’s purpose-built data store allows you to capture every event (whether it’s a log line, trace span, or user interaction) with remarkable efficiency:
- Compression: Axiom compresses event data efficiently, making storage affordable without sacrificing detail.
- Scalability: Designed for the long haul, Axiom scales effortlessly with your data needs, ensuring every event remains accessible.
- Unified insights: By bridging logs, metrics, and traces, Axiom enables a cohesive view across different business needs, helping teams uncover the why behind the what.
In Axiom, event data isn’t limited to logs or traces alone. It’s an umbrella term encompassing interactions across your organization, from infrastructure errors to customer behavior. These structured records help answer complex questions, driving data-informed decision-making across every department. By storing event data efficiently, Axiom empowers teams to retain every byte of context, providing the granular insight needed for modern observability and operational intelligence.
Welcome to a world where you don’t just capture data. You capture every insight, interaction, and answer. That’s the power of event data in Axiom.
Was this page helpful?