1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [logs](<https://delaparra-services.nl/knowledge-hub/logs>)

  

Category: Kubernetes 

# logs

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is logs?

 

logs: Print a container's stdout/stderr. Add -f to follow, --previous to see the crashed container's logs. ` kubectl logs ` shows what a container wrote to its standard output and error streams. ` kubectl logs web-7d9f8c ` prints the logs of that pod, and ` -f ` keeps following new lines as they arrive. ` --previous ` is the option people miss most. When a container crashes and restarts, the logs of the crashed instance explain why, and ` --previous ` shows exactly those.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about logs

  

### What should you keep in mind with logs?

 

For a pod with several containers, choose one with ` -c `. ` kubectl logs deploy/web ` picks a pod from a Deployment for you, and ` -l app=web ` shows logs from all matching pods. Kubernetes keeps only recent logs and loses them when a pod is deleted, so for anything you may need later, ship logs to a central system such as Loki or another logging service.

    

### What does an example of logs look like?

 

```
kubectl logs -f web-7d9f8c-abc12 kubectl logs web-7d9f8c-abc12 --previous
```

 

## At a glance

   CategoryKubernetes Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Kubernetes terms

 

- [label](<https://delaparra-services.nl/knowledge-hub/label>) 
- [limits](<https://delaparra-services.nl/knowledge-hub/limits>) 
- [LoadBalancer](<https://delaparra-services.nl/knowledge-hub/loadbalancer>) 
- [Namespace](<https://delaparra-services.nl/knowledge-hub/namespace-kubernetes>) 
- [NetworkPolicy](<https://delaparra-services.nl/knowledge-hub/networkpolicy>) 
- [node](<https://delaparra-services.nl/knowledge-hub/node-kubernetes>)

 

[All terms starting with L](<https://delaparra-services.nl/knowledge-hub#letter-l>)

 

## Skills

 

- ### Kubernetes Manifest Generator

 

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

 [View skill](<https://delaparra-services.nl/skills/k8s-manifest-generator>) [Download zip](<https://delaparra-services.nl/skills/k8s-manifest-generator/download>) 
- ### Helm Chart Scaffolding

 

Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.

 [View skill](<https://delaparra-services.nl/skills/helm-chart-scaffolding>) [Download zip](<https://delaparra-services.nl/skills/helm-chart-scaffolding/download>) 
- ### GitOps Workflow

 

Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation. Use when implementing GitOps practices, automating Kubernetes deployments, or setting up declarative infrastructure management.

 [View skill](<https://delaparra-services.nl/skills/gitops-workflow>) [Download zip](<https://delaparra-services.nl/skills/gitops-workflow/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/logs/skills.zip>)

 

## Manuals

 

- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>) 
- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/logs)
