GeassNetworkLog
A GeassNetworkLog is a schema for one HTTP access-log record. A record holds these values:
- The project, the environment, and the service.
- The host, the method, and the path of a request.
- The status code and the latency.
A record holds request metadata only, never request or response bodies.
Summary
Section titled “Summary”| Property | Value |
|---|---|
| API version | geass.geass.dev/v1alpha1 |
| Kind | GeassNetworkLog |
| Plural | geassnetworklogs |
| Scope | Namespaced |
| Namespace | geass-system, by convention |
| Subresources | None. The kind has no status. |
| Printer columns | None |
Example
Section titled “Example”This example shows a record, if something writes one.
apiVersion: geass.geass.dev/v1alpha1kind: GeassNetworkLogmetadata: name: storefront-1760000000-a1b2c3 namespace: geass-systemspec: project: proj-1a2b3c4d environment: production app: storefront timestamp: "2026-10-12T09:00:00Z" host: shop.example.com method: GET path: /checkout status: 200 latencyMillis: 42 upstreamOutcome: okSpec fields
Section titled “Spec fields”| Field | Type | Default | Validation | Meaning |
|---|---|---|---|---|
spec.project |
string | none | Required | The project ID. |
spec.environment |
string | none | Required | The environment. |
spec.app |
string | none | Required | The service that answered. |
spec.timestamp |
time | none | Required | When the request happened. The retention check uses it. |
spec.host |
string | none | none | The Host of the request. |
spec.method |
string | none | none | The HTTP method. |
spec.path |
string | none | none | The request path. |
spec.status |
integer | none | 32-bit integer | The response status code. |
spec.latencyMillis |
integer | none | 64-bit integer | How long the request took, in milliseconds. |
spec.upstreamOutcome |
string | none | none | A free-form note on how the upstream answered. |
What happens under the hood
Section titled “What happens under the hood”The operator runs a controller for the kind. The controller does these steps for each record:
- It compares
spec.timestampwith the retention, which is 7 days by default. - If the record is older than the retention, the controller deletes the record.
- If the record is not old enough, the controller looks at the record again after half the retention (3.5 days).
So a record can stay up to 3.5 days longer than its retention. The controller never deletes a record with an empty
timestamp. The role of the operator can create, delete, get, list, and watch the kind. The role cannot update the
kind.
The retention is a field of the controller. The operator does not set the retention from a flag, an environment variable, or a resource. So the retention is always 7 days.
The traefikAccessLogs block of the GeassPlatformConfig
(enabled, format, networkLogEndpoint) is in the schema, but nothing reads it.
kubectl -n geass-system get geassnetworklogsOn a cluster that you installed from the current code, this command lists nothing.
Editing by hand
Section titled “Editing by hand”You can create and delete records, but you get no benefit. The records do not appear anywhere, and the operator removes them after seven days. Do not store personal data in the records.
Troubleshooting
Section titled “Troubleshooting”The list is empty. This result is expected. Nothing writes these records.
I set traefikAccessLogs.enabled on the platform configuration and nothing happens. Geass does not use this field. See the caution at the top of this page.