# Getting logs using the tcpdump application

**tcpdump** is a Linux utility for capturing and analyzing network traffic. It allows you to monitor packets passing through a network interface in real time and save them for further analysis.

## Capturing Logs with the tcpdump Application

1. Connect to your PBX via SSH (instructions [here](/mikopbx/english/faq/troubleshooting/connecting-to-a-pbx-using-ssh/putty.md)).
2. Run the following command:

```bash
tcpdump -i eth0 -n -s 0 -vvv -w /tmp/capturefilename.pcap
```

<figure><img src="/files/j1CXf2OQwF2Mg22Kgtpg" alt=""><figcaption><p>Command in SSH connection</p></figcaption></figure>

3. Reproduce the issue by making a phone call. After the call, press **CTRL + C** in the SSH console to stop **tcpdump**.

<figure><img src="/files/mHaGruWLMj7pS6DGVCx8" alt=""><figcaption><p>Command in SSH connection</p></figcaption></figure>

4. Connect to the PBX using WinSCP (instructions [here](/mikopbx/english/faq/troubleshooting/connecting-to-a-pbx-using-winscp.md)).
5. Send the log file **/tmp/capturefilename.pcap** to technical support.

<figure><img src="/files/aQ6SGswdnhwXwX3AhFRS" alt=""><figcaption><p>File with logs</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mikopbx.com/mikopbx/english/faq/troubleshooting/getting-logs-using-the-tcpdump-application.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
