# How to manage PCAP cleaning

## How it works

Class 4 store all SIP capture in a file every minute.  You can find all the PCAP log under the following directory path:

&#x20;{installdir}/dnl\_softswitch/pcap.

{% hint style="info" %}
If you are installed using the standard RPM, AWS cloud image or Google cloud image, the default install path should be /opt/denovo
{% endhint %}

PCAP files get accumulated very fast.  If you don't have sufficient space, you may want to setup Class 4 to automatically clean the pcap files.

Here is the config file you need to use to control the pcap setting:

```
/opt/denovo/dnl_softswitch/conf/dnl_softswitch.conf
```

The section you need to update is:

```
[capture]
enable_capture = yes
enable_compress = yes
pcap_save_day = 3
#this setting tells the switch from when you want the old pcap be compressed
#delay_compress_days = 2
#this section tells the switch at which hour of the day ( GMT ) that you want the compress to take place.
#delay_compress_exe_hour = 5
    
```

After you make changes to this config file, you must restart the switch to make it effective.  Here is the command to restart Class 4 softswitch:

```
systemctl restart dnl_softswitch
```


---

# 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://v5cookbook.denovolab.com/maintainence/how-to-manage-pcap-cleaning.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.
