Skip to main content
Upcoming Webinar:

Getting Started with OpenObserve.

December 03, 2026.
11:00 AM ET.
Register

Centralizing Logs Across Kubernetes, AWS and On-Prem Servers

Simran Kumari
Simran Kumari.
November 30, 2026.
15 min read.
Don't forget to share!
TwitterLinkedInFacebook

Ready to get started?

Try OpenObserve Cloud today for more efficient and performant observability.

Centralize logs across Kubernetes, AWS, and on-prem servers

Centralizing logs across Kubernetes, AWS, and on-prem servers means running the right collector in each environment, tagging every log with where it came from, and sending everything to one platform you can search in one place. The hard part isn't the agents; it's consistent labels, safe network paths, and access control.

TL;DR

  • Run one collector per environment: the OpenObserve Collector Helm chart in every Kubernetes cluster, Kinesis Data Firehose for AWS service logs, the OpenObserve Collector on Linux and Windows servers, and a syslog forwarder for network devices.
  • Agree on one label scheme before you onboard anything, so a single query can filter by environment, cloud, region, cluster, service, and host.
  • Send everything outbound over HTTPS with separate credentials per environment, and use a gateway collector where servers have no internet access.
  • Give every Kubernetes cluster a unique k8sCluster name, and OpenObserve shows EKS, GKE, AKS, and on-prem clusters side by side in one Kubernetes view.
  • OpenObserve is the platform we recommend for this, because it ingests from all of these sources and lets you search every environment with one SQL query.

What is centralized logging?

Centralized logging is the practice of collecting logs from every place they're written (containers, servers, cloud services, firewalls, switches) and storing them in one searchable platform. Our log management guide covers the full lifecycle, and the log aggregation glossary entry explains the collection step on its own.

If you're new to this, a few terms come up throughout the guide:.

Term. What it means.
Collector (or agent). A small program that runs next to your workloads, reads their logs, and forwards them. Examples: the OpenTelemetry Collector, Fluent Bit, Vector.
OTLP. The OpenTelemetry Protocol, a standard format for sending logs, metrics, and traces over HTTP or gRPC.
Gateway collector. A collector that receives logs from other collectors in the same network and forwards them, so only one machine needs internet access.
Stream. In OpenObserve, a named collection of logs of the same kind, similar to an index or table.
Label (or field). A key-value pair attached to every log line, such as environment=prod, that lets you filter.

Why centralize logs from Kubernetes, AWS, and on-prem servers?

Picture a checkout failure. The frontend runs on EKS, the payment service runs on an on-prem VM in your data center, and the database sits behind an AWS Network Firewall. Without centralized logs, the on-call engineer opens three tools, learns three query languages, and lines up timestamps by hand. With centralized logs, one search for the order ID returns the failed request across all three environments, ordered by time.

Centralizing also gives you:.

  • One retention and access policy instead of one per tool, which matters for audits.
  • Cross-environment alerts, such as "error rate above 5% in any region", written once.
  • Lower operating effort, because you run and upgrade one log platform instead of several.

What does a hybrid log architecture look like?

A hybrid log architecture has three layers. Each environment gets its own collection method, but they all meet at one destination.

  1. Collection: an agent in each environment that reads logs where they're written.
  2. Transport: an authenticated, encrypted path from each environment to the backend, sometimes through a gateway collector that buffers and batches.
  3. Storage and query: one backend where every log is searchable with the same query language and labels.
Hybrid log architecture for Kubernetes, AWS, and on-prem servers Three environments on the left each send logs to OpenObserve on the right. Kubernetes clusters on EKS, GKE, AKS, or on-prem run the OpenObserve Collector Helm chart and send OTLP over HTTPS. AWS services such as CloudWatch Logs, VPC Flow Logs, WAF, and Network Firewall send logs through Kinesis Data Firehose to an HTTP endpoint. On-prem Linux and Windows servers run the OpenObserve Collector, and network devices send syslog to a forwarder such as syslog-ng; both can go through a gateway collector that is the only machine with internet access. In OpenObserve, every log carries the same labels and can be searched, charted, alerted on, and viewed per cluster in the Kubernetes explorer. Kubernetes clusters EKS · GKE · AKS · on-prem OpenObserve Collector Helm chart, k8sCluster=<name> container logs, events, metrics, traces AWS CloudWatch Logs (subscription filter) VPC Flow Logs · WAF · Network Firewall EC2 and EKS: use the collector Kinesis Data Firehose HTTP endpoint destination On-prem data center Linux and Windows servers OpenObserve Collector Firewalls, switches, appliances syslog → syslog-ng / Fluent Bit / Vector Gateway collector optional, the only box with egress OTLP / HTTPS HTTPS OTLP / HTTPS OpenObserve one organization, one label scheme • SQL search across all environments • Dashboards per environment • Alerts written once • Kubernetes explorer: every cluster • Retention and RBAC per stream

Which log collector should you run in each environment?

Here's which collector fits each source when the destination is OpenObserve. If you already run Fluent Bit, Vector, or another agent, you can keep it; our telemetry agents comparison covers the trade-offs.

Source. Collector. How it reaches OpenObserve.
Kubernetes (EKS, GKE, AKS, on-prem). OpenObserve Collector Helm chart, based on the OpenTelemetry Collector. OTLP over HTTPS.
CloudWatch Logs. Subscription filter to Kinesis Data Firehose. Firehose HTTP endpoint.
VPC Flow Logs, AWS WAF, AWS Network Firewall. Kinesis Data Firehose. Firehose HTTP endpoint.
EC2 and on-prem Linux servers. OpenObserve Collector for Linux. OTLP over HTTPS.
Windows servers. OpenObserve Collector for Windows. OTLP over HTTPS.
Network devices and appliances (syslog). syslog-ng / AxoSyslog, OTel Collector, Fluent Bit, or Vector. HTTP or OTLP.
Existing Fluent Bit, Fluentd, Vector, Filebeat, or Splunk forwarders. Keep them. HTTP outputs or the Splunk HEC endpoint.

Every option is in the log ingestion docs.

How to centralize logs across Kubernetes, AWS, and on-prem: step by step

The steps below take you from zero to one searchable view of every environment. Do them in order: deciding on labels first saves you from renaming fields across hundreds of machines later.

Step 1: Plan a consistent log labeling scheme

Collecting logs is the easy part. Making them searchable together depends on every environment using the same field names. Agree on these before onboarding the first environment:.

Field. Example values. Set where.
environment. prod, staging. Collector configuration.
cloud_provider. aws, gcp, azure, on_prem. Collector configuration.
region. us-east-1, europe-west1, dc-frankfurt. Collector configuration.
k8s_cluster. prod-us-east-1. Helm k8sCluster value.
service_name. checkout. Application or OpenTelemetry resource attributes.
host_name. web-1. Collected automatically.

In any OpenTelemetry Collector, the resource processor adds these fields to every log it forwards. Add it to the collector's processors and to its logs pipeline:.

processors:
  resource/labels:
    attributes:
      - key: environment
        value: prod
        action: upsert
      - key: cloud_provider
        value: on_prem
        action: upsert
      - key: region
        value: dc-frankfurt
        action: upsert

If older agents already send different names (env instead of environment, for example), use OpenObserve pipelines to rename them into the shared scheme at ingestion.

Step 2: Collect Kubernetes logs from EKS, GKE, AKS, and on-prem clusters

Install the OpenObserve Collector in every cluster, whether it runs on EKS, GKE, AKS, or your own hardware. The Helm chart sends container logs, Kubernetes events, metrics, and auto-instrumented traces:.

kubectl create ns openobserve-collector

helm --namespace openobserve-collector \
  install o2c openobserve/openobserve-collector \
  --set k8sCluster=prod-us-east-1 \
  --set exporters."otlphttp/openobserve".endpoint=<O2_ENDPOINT>/api/<O2_ORG> \
  --set exporters."otlphttp/openobserve".headers.Authorization="Basic <BASE64_AUTH>" \
  --set exporters."otlphttp/openobserve_k8s_events".endpoint=<O2_ENDPOINT>/api/<O2_ORG> \
  --set exporters."otlphttp/openobserve_k8s_events".headers.Authorization="Basic <BASE64_AUTH>"

The k8sCluster value is what makes multi-cluster monitoring work: the chart adds it to every log and event as the k8s_cluster field. Give every cluster a unique, descriptive name, such as prod-us-east-1 or prod-gke-europe-west1. The Data Sources page in OpenObserve generates this command with your endpoint and credentials filled in.

The Kubernetes integration docs cover each step. For platform-specific walkthroughs, see our AKS setup guide and on-prem Kubernetes monitoring guide.

Step 3: Send AWS logs from CloudWatch, VPC Flow Logs, and WAF

AWS services write logs in different places, so use the shortest path for each:.

  • CloudWatch Logs: add a subscription filter that sends each log group to a Kinesis Data Firehose stream with OpenObserve's HTTP endpoint as its destination. Data > Data sources > Custom > Logs > Kinesis Firehose shows the endpoint and access key. Our CloudWatch to Firehose tutorial shows every console step.
  • VPC Flow Logs, AWS WAF, and AWS Network Firewall: deliver these to Firehose directly, so they skip CloudWatch Logs ingestion entirely. See how to monitor AWS WAF logs for a worked example.
  • EC2 instances: run the OpenObserve Collector for Linux on the instance, the same as on-prem servers; see our guide to monitoring EC2 logs and metrics with OpenTelemetry.
  • EKS: treat it like any other Kubernetes cluster with the Helm chart from Step 2.

Step 4: Collect logs from on-prem Linux and Windows servers

  • Linux servers: the OpenObserve Collector collects system logs (syslog and journald) and host metrics such as CPU, memory, disk, and network. If you're unsure which Linux log source to read, journald vs syslog explains the difference.
  • Windows servers: the OpenObserve Collector for Windows collects Windows event logs and metrics.

Both installers are in Data Sources, with your endpoint and credentials already filled in. See the Linux and Windows integration docs.

Step 5: Forward syslog from network devices and appliances

Firewalls, switches, and storage appliances usually only speak syslog. OpenObserve doesn't run its own syslog server (it was removed in v0.16.0), so run a receiver next to the devices and point them at it:.

  • syslog-ng or AxoSyslog with its built-in OpenObserve destination. Our syslog-ng log forwarding guide shows a working configuration.
  • The OpenTelemetry Collector's syslog receiver.
  • Fluent Bit's syslog input or Vector's syslog source.

Run the receiver on a machine in the same network as the devices, so syslog (which is often unencrypted) never crosses the internet.

Step 6: Verify logs arrived and search across every environment

Open Logs in OpenObserve, pick a stream, and set the time range to the last 15 minutes. You should see recent lines from each source. To confirm every environment is reporting, count logs by your labels with SQL:.

SELECT environment, cloud_provider, k8s_cluster, COUNT(*) AS log_lines
FROM "default"
GROUP BY environment, cloud_provider, k8s_cluster
ORDER BY log_lines DESC

Replace default with your stream's name. A missing row means that environment isn't sending yet, or is sending with different field names. Once every row is there, the same filter works for incidents, for example WHERE k8s_cluster = 'prod-us-east-1' AND body LIKE '%timeout%'.

OpenObserve Logs explorer running a SQL query on Kubernetes logs, with Kubernetes fields such as cluster name and deployment name in the sidebar and log patterns grouped by frequency

How to secure log collection across hybrid environments

Centralizing logs means opening paths out of every environment and putting many teams' data in one place. Plan the network path and the access model before you onboard.

Network paths: egress over HTTPS and gateway collectors

  • Egress over HTTPS only. Every collector sends to one HTTPS endpoint, so on-prem firewalls need one outbound rule per site, not inbound access.
  • Gateway collectors for restricted networks. Where servers can't reach the internet, run an OpenTelemetry Collector gateway in each site that receives from local agents and forwards to OpenObserve, so only the gateway needs egress.

Credentials, redaction, and data residency

  • Separate credentials per environment, so you can rotate or revoke one site without touching the others.
  • Redact before or at ingestion. Mask passwords, tokens, and personal data in the collector or with OpenObserve's sensitive data redaction, before logs from many teams land in one place.
  • Data residency. If some logs must stay in a region, use a regional OpenObserve Cloud deployment such as EU-Central 1 (Frankfurt), or self-host in that region.
  • Access per team. Use RBAC on streams, or separate organizations for teams and tenants that must not see each other's logs.

How to monitor EKS, GKE, and AKS clusters in one place

Once every cluster sends data with its own k8sCluster name, OpenObserve's Infra › Kubernetes explorer shows them together:.

  • A clusters strip with one tile per cluster and a health dot: Healthy, Warning, Critical, or Not reporting.
  • Search resources (Ctrl+K or Cmd+K) across pods, workloads, nodes, and clusters.
  • A cluster overview with node and pod readiness, warnings, capacity against requests and limits, and a Needs attention list with a Logs button for each failing pod.
  • An offline clusters notice when a cluster stops reporting, with a link to the collector setup guide.

OpenObserve Infra Kubernetes cluster overview showing the clusters strip, node and pod readiness, cluster capacity, a Needs attention list of failing pods with Logs buttons, and an open incident

The explorer is read-only, so it never changes your clusters. See the Kubernetes Explorer docs.

Common challenges when centralizing logs (and how to fix them)

Most hybrid logging projects hit the same few problems. Here's how to spot and fix each one.

Why is a cluster or server missing from my logs?

Check the collector's own logs first (kubectl logs in the openobserve-collector namespace, or the service logs on a server). The usual causes are a wrong endpoint or organization in the URL, an expired or mistyped credential, or a firewall blocking outbound HTTPS. For Kubernetes, the explorer's Not reporting state and offline clusters notice tell you which cluster stopped.

Why can't I filter all environments with one query?

The fields don't match. One environment sends env, another sends environment, and a third sends nothing. Go back to Step 1, add the resource processor to every collector, and rename legacy fields with a pipeline.

How do I keep log volume and cost under control?

Drop what you'll never search before it leaves the environment: debug logs from noisy services, health-check lines, and duplicate events. Our guide to filtering logs at the source in the OTel Collector shows how, and logging best practices covers what to log in the first place.

Why centralize logs in OpenObserve?

OpenObserve is an open-source (AGPL-3.0) observability platform that accepts logs from every environment above, through OpenTelemetry, Firehose, syslog forwarders, and existing agents, and stores them as compressed Parquet on object storage with ingest-based pricing. Organizations, RBAC, and SSO keep each team's logs separate where they need to be.

  • Telemetry: logs, metrics, and traces with a service graph and service catalog, plus continuous profiles.
  • Frontend monitoring: real user monitoring (RUM), session replay, and error tracking.
  • Synthetic monitoring: scheduled browser and protocol checks.
  • AI: AI Assistant, SRE Agent for AI root cause analysis, an MCP server, LLM observability and evaluations, anomaly detection, log patterns, and insights.
  • Alerting and reliability: scheduled, real-time, composite, and anomaly alerts, incident management, and SLOs with error budgets and burn rates.
  • Dashboards and reports: real-time dashboards and scheduled PDF, PNG, or CSV reports.
  • Data processing: pipelines, VRL functions, enrichment tables, and metrics downsampling.
  • Storage and cost: Parquet on object storage, Bring Your Own Bucket on Cloud, extended retention, and ingest-based pricing with unlimited users.
  • Security and governance: SSO, RBAC, multi-tenancy, sensitive data redaction, audit trail, cipher keys, and federated search.
  • Compliance: SOC 2 Type II, ISO 27001, and GDPR via the EU-Central 1 (Frankfurt) region.
  • Open standards: OpenTelemetry-native ingestion, PromQL and SQL querying, and open source under AGPL-3.0.

Get started with OpenObserve

Frequently Asked Questions

About the Author

Simran Kumari

Simran Kumari

LinkedIn

Passionate about observability, AI systems, and cloud-native tools. All in on DevOps and improving the developer experience.

Follow OpenObserve on Google

Add OpenObserve as a preferred source to see more of our articles in Google Search and Top Stories.

Latest From Our Blogs

View all posts