# Api sever logs

**URL:** <https://discuss.kubernetes.io/t/api-sever-logs/17309>\
**Category:** General Discussions\
**Created:** [September 3, 2021, 9:33am UTC](https://discuss.kubernetes.io/t/api-sever-logs/17309 "2021-09-03T09:33:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![4k1l](https://avatars.discourse-cdn.com/v4/letter/4/6bbea6/32.png) [@4k1l](https://discuss.kubernetes.io/u/4k1l)\
**Post date:** [September 3, 2021, 9:33am UTC](https://discuss.kubernetes.io/t/api-sever-logs/17309/1 "2021-09-03T09:33:27Z")

</div>

Hi there, i am trying to understand the internal communication in the cluster for example when creating a pod.  
The verbose output of kubectl shows the http requests sent to the api-server, so i wanted to check what the api-server do, but the logs of the api-server are not showing anything related to the created pod.  
I was hoping to find the logs of the communication with the etcd and scheduler for example.

Is there any logs for the communication between api-server and the control plane components ?

---

<div class="post-metadata">

**Author:** ![protosam](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/protosam/32/7732_2.png) [@protosam](https://discuss.kubernetes.io/u/protosam)\
**Post date:** [September 6, 2021, 1:14am UTC](https://discuss.kubernetes.io/t/api-sever-logs/17309/2 "2021-09-06T01:14:41Z")

</div>

You can increase the verbosity of the [api-server logs](https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/). It’s probably done via manifest file at `/etc/kubernetes/manifests/kube-apiserver.yaml` and restarting the kubelet, depending on your deployment method.

There’s some useful diagrams and information in this section of the documentation too:

> **[Kubernetes Components](https://kubernetes.io/docs/concepts/overview/components/)**
>
> A Kubernetes cluster consists of the components that represent the control plane and a set of machines called nodes.

---

<div class="post-metadata">

**Author:** ![4k1l](https://avatars.discourse-cdn.com/v4/letter/4/6bbea6/32.png) [@4k1l](https://discuss.kubernetes.io/u/4k1l)\
**Post date:** [September 6, 2021, 9:45am UTC](https://discuss.kubernetes.io/t/api-sever-logs/17309/3 "2021-09-06T09:45:58Z")

</div>

Thanks @protosam! increasing he verbosity indeed showed more info, but didn’t show the requests sent by the api-server to the etcd. I already read this page in the documentation. I want though to check the requests sent from each of the control-plane to validate what’s written in the documentation. Probably till now the only way, is to dig down in to the source code.

---

<div class="post-metadata">

**Author:** ![protosam](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/protosam/32/7732_2.png) [@protosam](https://discuss.kubernetes.io/u/protosam)\
**Post date:** [September 6, 2021, 4:55pm UTC](https://discuss.kubernetes.io/t/api-sever-logs/17309/4 "2021-09-06T16:55:12Z")

</div>

In most cases the only thing that will be using etcd is Kubernetes. Perhaps modify the etcd flags.

> **[Configuration flags](https://etcd.io/docs/v3.4/op-guide/configuration/#logging-flags)**
>
> etcd configuration: files, flags, and environment variables

If all else fails, you can always setup a proxy server in front of etcd to act as a man-in-the-middle to get the information you’re looking for.
