> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/engines/manage-engines.md).

# Manage Engines

After you have installed the engine, you can manage engines and Load-Balancing groups by going to Settings → INTEGRATIONS → **Engines**.

You can view engine names, hosts, status, connection, etc.

{% hint style="info" %}

### Note

In the **Service Name** column, if the service name starts with a **`d1`** prefix, it is a multiple engine.
{% endhint %}

You can do the following:

* Add/remove engines to the [Load-Balancing Group](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/engines/cortex-xsoar-engines-overview.md#engine-load-balancing).

  You can only add the engine to the Load-Balancing group after you have connected the engine.

  If you want to remove the last engine from a specific Load-Balancing group, if one or more integration instances use that engine, you will get an error. Before moving the engine, you need to assign **Run on** to a different engine or no engine for each of the integration instance settings.
* Create Load-Balancing Groups

  When selecting Load-Balancing Group → **Add to new group**, you can create multiple Load-Balancing groups and decide which engines are part of each group. It is useful to create separate Load-Balancing groups. For example,

  * Use separate Load-Balancing groups for different integrations and instances. Create Load-Balancing groups for certain tasks, which can help segregate the infrastructure of critical integrations.
  * Managed Security Service Providers may want to split internal engines and SaaS product engines.
  * If you have multiple AWS accounts that are not connected and do not want a single point of failure for AWS integrations that use STS.
  * For high availability, you may want multiple Load-Balancing groups of engines in different locations.
  * It can also help managing the load in a multi tenant environment

  Users can move an engine from one group to another. A group will be deleted when the last engine is removed from it.

  Each engine can only belong to one group.

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>(Multi-Tenant) When clicking <strong>Load-Balancing and Propagation</strong>, you can share engines with tenants for integration purposes.</p></div>
* Get engine logs

  Logs are located in **`/var/log/demisto`**. For multiple engines, logs are located in **`/var/log/demisto/`*****`<name of the engine>`***. For example, **`var/log/demisto.d1_e1`**.
* Upgrade an engine

  Whenever there is a Cortex XSOAR major version change or a change in server-engine protocol version, your engines require an upgrade. The **Status** column shows those engines that require upgrades.

  To upgrade the engine, select the checkbox for the engine that requires the upgrade and click **Upgrade Engine**. When the upgrade finishes, the version appears in the **Cortex XSOAR Version**. The upgrade procedure can take several minutes.

  You can only upgrade the engine if you installed the engine with the shell installer. To upgrade engines that were not installed with the shell installer, you need to remove the engine and do a fresh install. For more information, see [Install a Cortex XSOAR Engine](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/engines/engine-installation/install-a-cortex-xsoar-engine.md). For troubleshooting, see [Troubleshoot Engine Upgrades](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/engines/troubleshoot-cortex-xsoar-engines.md).

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>By default, auto upgrade extracts the files to the <strong><code>/tmp</code></strong> directory. In some cases, you might need to use a different directory. For example, a common use case is if your <strong><code>/tmp</code></strong> directory is mounted as a non-executable directory. To use a different directory, edit the <strong><code>XSOAR_ENGINE_AUTO_UPGRADE_TMP_DIR</code></strong> env variable. The env variable can be specified as a global variable or can be edited in the crontab of the root user that runs the engine upgrade script. To edit the crontab of root, run <strong><code>sudo crontab -e</code></strong>. An example:</p><pre class="language-programlisting"><code class="lang-programlisting"># d1 engine
  XSOAR_ENGINE_AUTO_UPGRADE_TMP_DIR=/root/tmp
  PATH=/sbin:/bin:/usr/sbin:/usr/bin
  * * * * * /usr/local/demisto/upgrade_engine.sh >> /var/log/demisto/demisto_install.log
  </code></pre></div>
* Delete engines


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/engines/manage-engines.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
