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

# sk170352 - Using the "set simple-gateway" API command with "logs-settings.forward-logs-to-log-server" fails with "Generic server error"

| Property | Value |
|----------|-------|
| Solution ID | sk170352 |
| Date Created | 2021-03-02 |
| Last Modified | 2021-07-14 |
| Technical Level | General |
| Products | Security Management Server, SmartConsole, Multi-Domain Security Management Server |
| Versions | R81 (EOS), R81 (EOS), R81 (EOS) |
| OS | Gaia |

## Symptoms

- * When using API or SmartConsole CLI with the command: *"set simple-gateway X logs-settings.forward-logs-to-log-server-name Y"* the command fails.

* In the file $FWDIR/log/cpm.elg similar errors are found:  
  `
  [DATE TIME] ERROR internal.query.QuerySvcImpl [qtp770863270-162]: query ALL_LOG_SERVER_OBJECTS not found`  
  `
  [DATE TIME] WARN coresvc.internal.ObjectStoreJpaTransactionManager [qtp770863270-162]: rolling back the transaction.`  
  `

  [DATE TIME] ERROR infrastructure.logging.DefaultExceptionLoggerHandlerImpl [qtp770863270-162]: incident [39f0776a-5f1a-44e2-9792-34e3b3298009]:
  CpmGeneralException{base='com.checkpoint.management.is.exceptions.CpmIllegalArgumentException: query not found ALL_LOG_SERVER_OBJECTS', errorCode='CP_ERR_ILLEGAL_ARGUMENT', 
  errorFamily='null', messageForUser='null', message='query not found ALL_LOG_SERVER_OBJECTS'}`  
  `

  [DATE TIME] ERROR dleserver.internal.DefaultExceptionMapper [qtp770863270-162]: Internal runtime error
  CpmGeneralException{base='com.checkpoint.management.is.exceptions.CpmIllegalArgumentException: query not found ALL_LOG_SERVER_OBJECTS', errorCode='CP_ERR_ILLEGAL_ARGUMENT', 
  errorFamily='null', messageForUser='null', message='query not found ALL_LOG_SERVER_OBJECTS'}`

## Cause

A software limitation is causing the API command to try and utilize a non-existing query.

## Solution

This problem was fixed. The fix is included in:

* [Check Point R81.10](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk170416)
* [Jumbo Hotfix Accumulator for R81](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk170114) starting from Take 13
* [Jumbo Hotfix Accumulator for R80.40](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk165456) starting from Take 91
* [Jumbo Hotfix Accumulator for R80.30](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk153152) starting from Take 228
* [Jumbo Hotfix Accumulator for R80.20](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk137592) starting from Take 190

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://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk168597).

---

# 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
