---
title: "Solving Microservices Connectivity Issues with Network Logs"
source: "https://www.tigera.io/blog/solving-microservices-connectivity-issues-with-network-logs/"
description: "DevOps, SecOps, Network and Platform teams can use network logs to address use cases that apply within their respective domains."
---

[Technical Blog](https://www.tigera.io/category/technical-blog/)

# Solving Microservices Connectivity Issues with Network Logs

By [Bikram Gupta](https://www.tigera.io/blog/author/bikramgupta/) on Oct 14, 2020 • 5 min read

The network is foundational to distributed application environments. A distributed application has multiple microservices, each running in a set of pods often located on different nodes. Problem areas in a distributed application can be in network layer connectivity (think network flow logs), or application resources unavailability (think metrics), or component unavailability (think tracing). Network layer connectivity can be impacted by various factors such as routing configuration, IP pool configuration, network policies, etc. When service A cannot talk to service B over the network, or an external application cannot connect to service A, network logs become an essential source of historical data needed for troubleshooting connectivity issues. Just like in a traditional network, network logs enable cluster administrators to monitor the [Kubernetes microservices](https://www.tigera.io/learn/guides/microservices-security/microservices-kubernetes/) network.

 

 

#### **Network Logs Can Address Multiple Use Cases**

Network logs can be used to serve the unique requirements of different teams (DevOps, SecOps, Platform, Network). The value of Kubernetes network logs resides in the information collected, such as detailed context about endpoints (e.g., pods, labels, namespaces) and the network policies deployed in configuring the connection. Within the IT estate, DevOps, SecOps, Network and Platform teams can use network logs to address use cases that apply within their respective domains. We’ve shown some examples, below.

![Table showing 'Team' and 'Use Case' columns, likely for microservices connectivity troubleshooting](/app/uploads/2020/10/Calicomm-chart_sept2020png-300x214.png)

#### **Generate Policies and Detect Threats with Calico Enterprise Flow Logs**

Calico Enterprise generates context-aware network flow logs for every connection to a pod. The flow log is captured on a file on the node, which is then processed by a fluentd agent and sent to the configured destination. 

Robust [Kubernetes security](https://www.tigera.io/learn/guides/kubernetes-security/) depends on visibility into every connection, which network flow logs provide for detecting policy violations and threats.

![Diagram showing Calico Enterprise flow logs processed by Fluentd, then sent to Elasticsearch/Kibana or a logging system like](/app/uploads/2020/10/flow-log-flow-chart-300x121.png)

As shown in the diagram above, logs are sent by default to an Elasticsearch engine, which is included with Calico Enterprise. You can configure flow logs to be forwarded to your SOC platform. We recommend you have a single logging platform for all your logs. Logs are a critical monitoring and analytical tool for the operations team who already has well-defined processes built around a centralized logging platform. This is important for your planning.

These network logs are also central to [microservices security](https://www.tigera.io/learn/guides/microservices-security/), helping teams enforce policies and spot suspicious traffic between services.

#### **Flow Log Characteristics**

Flow logs have a lot of storage overhead. By default, Calico Enterprise keeps only seven days of logs. This enables Calico Enterprise to provide features specifically targeted for simplifying policy development, and troubleshooting connectivity in near real-time.

- Policy recommendation enables developers to automatically generate network policies to harden their service

- Policy workflow (recommendation, preview, staged policies) enables SecOps and DevOps to build policies efficiently and deploy in a non-intrusive manner

- Threat detection enables SecOps to investigate every flow log by specific IP or domain, and detect threats

A typical flow log in Calico Enterprise is enriched with all the required contextual information as follows:

- Kubernetes context (pod, namespace, labels, policies)

- Original IP for external sources, if available through ingress

- Start_time, end_time, action, bytes_in, bytes_out, dest_ip, dest_name, dest_name_aggr, dest_namespace, dest_port, dest_type, dest_labels, reporter, num_flows, num_flows_completed, num_flows_started, http_requests_allowed_in, http_requests_denied_in, packets_in, packets_out, proto, policies, source_ip, source_name, source_name_aggr, source_namespace, source_port, source_type, source_labels, original_source_ips, num_original_source_ips

A DNS log is aggregated per pod over time, and contains the following information:

- Start_time, end_time, type, count, client_ip, client_name, client_name_aggr, client_namespace, client_labels, qname, qtype, qclass, rcode, rrsets, servers

The log entries described are available through Kibana as Elasticsearch indexes. You have full control of the indexing, retention and storage parameters. Sticking to defaults works well for most deployments.

#### **Reduce Operational Costs by Optimizing Flow Log Storage**

Calico Enterprise collects various logs (network/flow, audit, DNS). Out of all these, flow logs are the most expensive in terms of storage, consuming over 95% of overall storage. It is not unusual to see 5k flows/sec per fully-loaded node. With a modest 200 bytes/flow, this translates to 1 MB/s (megabyte). The daily storage requirement per node is 86GB for flow logs. For a 100-node cluster, the daily flow log requirement becomes 8TB+!! Clearly, it doesn’t scale. And more importantly, do you really need to retain so much data? Typically, the value of log data decreases exponentially over time and is relevant only for troubleshooting and compliance purposes.

For that reason, Calico Enterprise has a default configuration aggregation that intelligently reduces flow log storage requirements by over 100x! We do this without sacrificing the value (visibility, monitoring, troubleshooting) that our customers get out of flow logs. Logs for a destination replicaset are aggregated on a particular port over a period of time. So you don’t need to worry about the cost of storing flow logs while using the default Calico Enterprise configuration. Another way Calico Enterprise can help you to reduce storage requirements is by exclusion. You can easily configure specific namespaces or deployments to be excluded from generating flow logs.

#### **Interested in exploring flow logs in detail?**

Flow logs are enabled by default. Refer to the following documentation for custom configuration.

- [Flow logs format](https://docs.tigera.io/calico-enterprise/latest/observability/elastic/flow/#content-main)

- [DNS logs format](https://docs.tigera.io/calico-enterprise/latest/observability/elastic/dns/)

- [Exclude specific namespace of pod](https://docs.tigera.io/calico-enterprise/latest/observability/elastic/overview#filter-configuration-files)

- [Log retention period](https://docs.tigera.io/calico-enterprise/latest/reference/installation/api#operator.www.tigera.io/v1.Retention)

- [Additional logging destination](https://docs.tigera.io/calico-enterprise/latest/reference/installation/api)

————————————————-

**[Free Online Training](https://www.tigera.io/events/)**

Access Live and On-Demand Kubernetes Training

**[Calico Enterprise – Free Trial](https://www.calicocloud.io/home)**

Network Security, Monitoring, and Troubleshooting

for Microservices Running on Kubernetes

[Products](https://www.tigera.io/tags/products/)

## Related posts

[![Meet Mylo: An AI-native way to work with Calico](https://www.tigera.io/app/uploads/2026/09/Meet-Mylo-An-AI-native-way-to-work-with-Calico.png)](https://www.tigera.io/blog/meet-mylo-an-ai-native-way-to-work-with-calico/)

#### [Meet Mylo: An AI-native way to work with Calico](https://www.tigera.io/blog/meet-mylo-an-ai-native-way-to-work-with-calico/)

By [Phil DiCorpo](https://www.tigera.io/blog/author/phil-dicorpo/)
on Sep 3, 2026

A library of Calico tools and skills — delivered through the Calico MCP Server What if your hardest network question took ten minutes instead of ten days? Anyone who has operated Kubernetes networking at scale...

[Read more](https://www.tigera.io/blog/meet-mylo-an-ai-native-way-to-work-with-calico/)

[![The Safest Place to Run an AI Agent Is On a Cluster That Doesn’t Trust It](https://www.tigera.io/app/uploads/2026/08/The-Safest-Place-to-Run-an-AI-Agent-Is-On-a-Cluster-That-Doesnt-Trust-It.png)](https://www.tigera.io/blog/the-safest-place-to-run-an-ai-agent-is-on-a-cluster-that-doesnt-trust-it/)

#### [The Safest Place to Run an AI Agent Is On a Cluster That Doesn’t Trust It](https://www.tigera.io/blog/the-safest-place-to-run-an-ai-agent-is-on-a-cluster-that-doesnt-trust-it/)

By [Alister Baroi](https://www.tigera.io/blog/author/alister-baroi/)
on Aug 27, 2026

Every organization running AI agents has already made a hosting decision. Most made it by accident. The sales team switched on the agent built into their CRM. Engineering is piloting a coding agent in a...

[Read more](https://www.tigera.io/blog/the-safest-place-to-run-an-ai-agent-is-on-a-cluster-that-doesnt-trust-it/)

[![AI Red Team Agents Automate Attacks on your AI Agents. Runtime Policies Automate their Defense.](https://www.tigera.io/app/uploads/2026/08/AI-Red-Team-Agents-Automate-Attacks-on-your-AI-Agents.-Runtime-Policies-Automate-their-Defense.png)](https://www.tigera.io/blog/ai-red-team-agents-automate-attacks-on-your-ai-agents-runtime-policies-automate-their-defense/)

#### [AI Red Team Agents Automate Attacks on your AI Agents. Runtime Policies Automate their Defense.](https://www.tigera.io/blog/ai-red-team-agents-automate-attacks-on-your-ai-agents-runtime-policies-automate-their-defense/)

By [Alister Baroi](https://www.tigera.io/blog/author/alister-baroi/)
on Aug 24, 2026

The AI red teaming market grew up fast this year. OpenAI bought Promptfoo, Cisco and Microsoft shipped automated attack suites, and a seed-stage startup publicly compromised 50 of 55 live customer service bots. These platforms...

[Read more](https://www.tigera.io/blog/ai-red-team-agents-automate-attacks-on-your-ai-agents-runtime-policies-automate-their-defense/)

<!-- plugin=object-cache-pro client=phpredis metric#hits=6138 metric#misses=18 metric#hit-ratio=99.7 metric#bytes=2236828 metric#prefetches=0 metric#store-reads=415 metric#store-writes=37 metric#store-hits=426 metric#store-misses=7 metric#sql-queries=39 metric#ms-total=1212.74 metric#ms-cache=71.84 metric#ms-cache-avg=0.1593 metric#ms-cache-ratio=5.9 sample#redis-hits=74386801 sample#redis-misses=9041447 sample#redis-hit-ratio=89.2 sample#redis-ops-per-sec=276 sample#redis-evicted-keys=0 sample#redis-used-memory=112442856 sample#redis-used-memory-rss=107237376 sample#redis-memory-fragmentation-ratio=0.9 sample#redis-connected-clients=1 sample#redis-tracking-clients=0 sample#redis-rejected-connections=0 sample#redis-keys=45741 -->
