Skip to main content
The pods are running — but is anything actually arriving at the logging backend? A running pod only proves the container started; it doesn’t confirm that individual log lines completed the trip to your log store. After building a logging pipeline you should always verify end-to-end delivery. In this guide the far end is Elasticsearch. In our test environment, Bob can reach Elasticsearch via a NodePort on port 30200.
A simple network diagram titled "Look at the Far End" showing Bob on the left connecting to a Service (NodePort 30200). The service forwards to an Elasticsearch pod labeled "elasticsearch-0" running on a controlplane node.

Step 1 — Query Elasticsearch (the far end)

From Bob’s machine, request everything from Elasticsearch with a simple search query. Appending /_search with q=*:* finds documents where any field has any value; add pretty for human-readable JSON:
When Fluentd is just starting to forward records, Elasticsearch might return only metadata and no hits. Fluentd buffers records and flushes every ~5 seconds (depending on your configuration), so allow a short delay for the first flush and for the index to be created.
Fluentd buffers and periodically flushes records (commonly every 5s). If your initial search returns no hits, wait a few seconds and retry before assuming data is missing.
Example initial response (no hits yet):
After the first flush and index creation, the hits array fills with documents — each document corresponds to one parsed log line. Example response with hits:

What each document contains

The document returned by Elasticsearch typically includes parsed log fields and Kubernetes metadata. Use the table below to quickly identify common fields and examples. Seeing a document that references the app pod confirms the line originated from that pod and not from another node process.

Step 2 — Verify the same line exists at the source

Confirm the line is present both in Elasticsearch and at the source (the pod). In one terminal pane stream the pod’s logs with kubectl; in another, inspect Elasticsearch results in the browser or via curl. Stream the pod logs:
Example kubectl logs output:
Corresponding Elasticsearch hits (simplified _source entries):
Same line, two locations: one remains on the node (pod logs/files) and one is stored in Elasticsearch (persisted across pod restarts).

Searching from the terminal and result sizing

You can query Elasticsearch from the terminal for specific values. Example: search for occurrences of USER1:
Important: Elasticsearch defaults to returning a limited number of documents per request (commonly 10). If you expect more hits than the default, increase the size parameter:
If recent lines seem missing from a search, first verify your query and the size parameter. A short result list often means the documents exist but weren’t returned due to pagination or defaults.
Example scenario: new log lines were generated, but the initial short search returned only a subset: New app logs:
Initial short search:
Returned subset:
After increasing size (for example, size=10000) the remaining documents are returned. Missing entries in the response are often a pagination/configuration issue, not a data-loss issue.

Summary

  • A log line is created by the app and is visible with kubectl logs.
  • Fluentd tails the node logs, parses them, buffers and flushes to Elasticsearch.
  • Elasticsearch stores the record in an index named with the fluentd- prefix and the date.
  • The same log line can be confirmed both in the pod and in Elasticsearch (end-to-end verification).
Raw JSON from curl is useful for verification, but it’s not ideal for team exploration. Now imagine a perfect pipeline where all lines are already indexed in Elasticsearch. Five engineers gather around a single laptop while the one person who knows the search syntax runs curl, scrolls through JSON, and reads timestamps aloud. That’s not a practical collaboration model.
The image shows a diagram titled "Five Engineers, One Laptop" with five smiling user icons surrounding a central laptop icon. On the right are the Elasticsearch logo and a stylized cylindrical database.
What should you put in front of Elasticsearch so the whole team can explore logs independently? A human-friendly log UI — for example, Kibana or a similar dashboard — provides search, filtering, and visualization so teams can investigate together without parsing raw JSON.

Watch Video

Practice Lab