> Source: [sk183892](https://support.checkpoint.com/results/sk/sk183892)

# sk183892 - "api stats -group_by_domain" does not sort API data by domains

| Property | Value |
|----------|-------|
| Solution ID | sk183892 |
| Date Created | 2025-09-16 |
| Last Modified | 2026-09-10 |
| Technical Level | General |
| Products | Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R81.10 (EOS), R81.10 (EOS), R81.20, R82 |
| OS | Gaia |

## Symptoms

- The `api stats -group_by_domain` command shows data from all domains as "unknown domain" instead of their real domain name.

## Cause

The `api stats` command pulls the data from the `$MDS_FWDIR/log/api.csv` file and since the `ENHANCE_API_CSV` environment variable is not enabled by default, the related domain is not displayed.

## Solution

This problem was fixed. The fix is included in:

* [Jumbo Hotfix Accumulator for R82.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R82.10/Default.htm) starting from Take 44
* [Jumbo Hotfix Accumulator for R82](https://sc1.checkpoint.com/documents/Jumbo_HFA/R82/Default.htm) starting from Take 126
* [Jumbo Hotfix Accumulator for R81.20](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/Default.htm) starting from Take 166

If you choose not to upgrade, Check Point can supply a **Hotfix** . [Contact Check Point Support](https://www.checkpoint.com/support-services/contact-support/) to get a Hotfix for this issue.  
A Support Engineer will make sure the Hotfix is compatible with your environment before providing the Hotfix.  
For faster resolution and verification, please collect [CPinfo files](http://supportcontent.checkpoint.com/solutions?id=sk92739) from the Security Management Server and Security Gateways involved in the case.

**Hotfix installation instructions:**   
Refer to [sk168597 - How to install a Hotfix](https://support.checkpoint.com/results/sk/sk168597).

If you choose not to upgrade, you can use this workaround by enabling the`ENHANCE_API_CSV `environment variable.

To do so, run the command:  

`# $MDS_FWDIR/scripts/reload_env_vars.sh -e "ENHANCE_API_CSV=TRUE"`  

To disable this environment variable, run:  

`# $MDS_FWDIR/scripts/reload_env_vars.sh -e "ENHANCE_API_CSV=1"`

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
