At a glance
- Challenge: logs from applications, servers, Kubernetes and the cloud are stored in different places and formats, so failures and unusual behavior are slow to find.
- Solution: DataFloem pipelines collect these logs, parse, normalize, filter and enrich them, and write them to one set of analytics-ready tables.
- Value: one view of operational data, faster troubleshooting, and a clean basis for anomaly detection and security investigations.
The scenario
An illustrative scenario. It does not describe a specific customer.
A mid-sized online services company runs its applications on several
Kubernetes clusters and a public cloud. One night the
checkout-api service starts returning errors shortly
after a deployment.
- The application team sees exceptions in the JSON application logs.
- The platform team sees pod restarts in Kubernetes events.
- The security team sees a rise in failed sign-ins in a separate event store.
Each team holds one part of the picture. Putting those parts together takes hours of exporting, copying and matching timestamps by hand.
Why scattered logs slow everyone down
Modern IT environments generate large volumes of logs from applications, servers, containers and cloud infrastructure. When these logs are spread across platforms, three problems appear:
-
No shared schema. The same host is called
hostname,nodeorinstance_id. Severity can appear asERROR,error3. Timestamps use different time zones. - No shared location. Every source has its own store, retention period and query language.
- No context. A raw log line does not say which service, team or environment it belongs to.
The organization needs a central way to process and analyze its operational data.
The data sources
| Source | What it contributes |
|---|---|
| Application logs | Errors, exceptions, request latency |
| Server logs | System messages, authentication events |
| Kubernetes logs | Pod output, restarts, scheduling events |
| Cloud infrastructure logs | Audit trails, resource changes |
| Monitoring platforms | Alerts, health checks |
| Security event records | Sign-in attempts, access changes |
| Infrastructure metrics | CPU, memory, latency, throughput |
Building the pipeline in DataFloem
The company uses DataFloem, a self-hosted data platform on Apache Spark and Kubernetes, as one processing layer between its log sources and its analysts.
- Connect the sources. Log exports stored in object storage as JSON files, events held in Elasticsearch, and a service-ownership reference table in a relational database are registered as DataFloem sources.
- Parse and normalize. In one visual job, Expression and SQL nodes rename fields, standardize severity levels and convert timestamps to UTC.
- Filter the noise. A Filter node removes health-check and debug records.
- Enrich. A Join node adds each record's service, owner team and environment from the reference table.
- Combine. A Union node merges application, Kubernetes and security events into one timeline. Data Preview on each node lets the team confirm the output at every step before running the full job.
-
Store analytics-ready tables. The unified events,
plus an Aggregation of error counts per service per
minute, are written as Apache Iceberg tables in the DataFloem
catalog:
log_events_unifiedandservice_errors_per_minute. - Run it reliably. The job is versioned and parameterized, for example by date window. It runs on a registered Spark cluster on the company's own Kubernetes, and its run logs are available in DataFloem. A dynamic cluster can be started for the run and stopped when it is idle.
Finding the cause and the anomalies
With every source in one table, the night's questions get answers:
-
One timeline. Using SQL on the unified table,
the team sees that the
checkout-apierror spike, the pod restarts and the deployment all fall in the same time window. - A baseline. In a Code Flow notebook, a data scientist builds a simple baseline on the per-minute error table and flags minutes that fall far outside it. The same approach can later be extended to other services and to security signals.
Architecture
Object storage (JSON app & K8s logs) ┐
Elasticsearch (security events) ┼─▶ DataFloem visual job ─────────────▶ Iceberg tables (catalog)
RDBMS (service ownership) ┘ parse · normalize · filter · ├─ log_events_unified
enrich · union · aggregate └─ service_errors_per_minute
on a managed Spark cluster (K8s) │
SQL · Code Flow notebook
(baseline & anomaly flags)
What it means for the business
| Before | With DataFloem |
|---|---|
| Logs spread across tools and teams | One governed set of log tables |
| Timestamps and fields matched by hand | One schema, consistent timestamps |
| Root cause found by passing the problem between teams | A correlated timeline across application, infrastructure and security |
| Anomalies noticed after users complain | Historical baselines that make unusual behavior visible |
| Security investigations missing operational context | Security events linked to services and owners |
The DataFloem capabilities it uses
| Capability | Role in this use case |
|---|---|
| Data integration | Object storage, Elasticsearch and RDBMS sources |
| Data processing | A visual job with Expression, SQL, Filter, Join, Union and Aggregation nodes |
| Workflow orchestration | Versioned, parameterized, repeatable job runs |
| Cluster management | Spark clusters on customer-managed Kubernetes |
| Code Flow | Notebook and Python workloads for anomaly detection |
See it in action
The video below shows the same use case in DataFloem, from the scattered log sources to one timeline and the flagged anomalies.