> For the complete documentation index, see [llms.txt](https://docs.mikopbx.com/mikopbx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mikopbx.com/mikopbx/english/faq/troubleshooting/getting-logs-using-the-tcpdump-application.md).

# 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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F9q20YzF554AbGgfeZCys%2FfirstOutput.png?alt=media&amp;token=5d49efbd-3add-4ee9-bd82-90d42beb8e62" 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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FgWDZd8t6f9FfO9VdL45d%2FsecondOutput.png?alt=media&amp;token=ebdaa567-c12a-430d-a402-230e7fc0a1b1" 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="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2F24rfAkrMZ08a8BySLaTv%2FfileWithLogs.png?alt=media&amp;token=e3371938-43e0-4931-99ef-d5d05cec0e5c" alt=""><figcaption><p>File with logs</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
