Event File Format
A Retis event file contains a top-level object with metadata and an array of events:Event Sections
Each event is composed of optional sections. The only mandatory section iscommon, which contains basic timing and task information.
Section Overview
common - Basic Event Information
common - Basic Event Information
Always present. Contains timestamp, CPU, and task information.Fields:
timestamp: CLOCK_MONOTONIC nanosecondssmp_id: SMP processor ID (CPU number)task.pid: Process IDtask.tgid: Thread group IDtask.comm: Process/thread name (16 chars max)
kernel - Kernel Probe Information
kernel - Kernel Probe Information
Present when event comes from a kernel probe.Fields:
symbol: Kernel function nameprobe_type: One ofkprobe,kretprobe, orraw_tracepointstack_trace: Optional kernel stack trace (when enabled)
skb-tracking - Packet Tracking
skb-tracking - Packet Tracking
Identifies and tracks packets across the kernel network stack.Fields:
orig_head: Original buffer head pointer (part of tracking ID)timestamp: First-seen timestamp (part of tracking ID)skb: Current sk_buff address (distinguishes clones)
(timestamp << 64) | orig_headskb - SKB Metadata
skb - SKB Metadata
Socket buffer metadata including checksum, length, and GSO information.
packet - Raw Packet Data
packet - Raw Packet Data
Contains the actual packet bytes (base64-encoded) and length information.Fields:
len: Original packet lengthcapture_len: Captured length (may be truncated)data: Base64-encoded raw packet bytes
ct - Connection Tracking
ct - Connection Tracking
Netfilter connection tracking information.States:
established, related, new, reply, related_reply, untrackednft - Netfilter (nftables)
nft - Netfilter (nftables)
Nftables rule verdict information.
ovs - Open vSwitch
ovs - Open vSwitch
OVS datapath and flow information.
dev - Network Device
dev - Network Device
Network interface information.
netns - Network Namespace
netns - Network Namespace
Network namespace identification.
skb_drop - Drop Reason
skb_drop - Drop Reason
Packet drop reason when available.
startup - Collection Metadata
startup - Collection Metadata
First event in file with collection information.
Complete Event Example
Here’s a complete event showing multiple sections:Generating the JSON Schema
Retis can generate a complete JSON Schema for event validation and tooling:- Complete type definitions for all sections
- Field descriptions and constraints
- Enum values for state fields
- Required vs. optional field markers
Using the Schema
Event Series
When events are sorted withretis sort, they’re grouped into series by tracking ID:
skb-tracking ID, ordered by timestamp.
Working with Events
See Also
- Python Bindings - Programmatic event access
- PCAP Export - Schema usage in Wireshark
- Event Sections Reference - Detailed field documentation
