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

# sk176309 - "Error - not writing logs" shows in cpstat on Security Gateway

| Property | Value |
|----------|-------|
| Solution ID | sk176309 |
| Date Created | 2021-11-11 |
| Last Modified | 2022-11-16 |
| Technical Level | Advanced |
| Products | Hardware |
| Versions | Not Version-Specific |
| OS | Gaia |

## Symptoms

- * Running "`cpstat fw -f log_connection`" on the Security Gateway shows this output:

  `
  Error - not writing logs
  `  
  `
  `  
  `
  "Overall Status Description: Security Gateway is reporting logs as defined"
  `  
  `
  "Local Logging Mode Description: Error - not writing logs"
  `  
  `
  "Local Logging Mode Status: 5"
  `   

* Performing a debug on FWD shows this output:

  `LSConnStatShmem::Init: Shared memory no longer valid. Reallocating`
* the following snmpwalk query shows an unsupported value: snmpwalk -v3 -u -l authPriv -a MD5 --A -x DES -X 1.3.6.1.4.1.2620.1.1.30.5.0 SNMPv2-SMI::enterprises.2620.1.1.30.5.0 = INTEGER: 5

## Cause

The information from this output is stored in shared memory.

FWD writes to this shared memory and CPD/AMON reads from it.

A WRITE_ERROR is received if the shared memory is not updated within 30 seconds.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# 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
