﻿---
title: Turn on risk scoring
description: You can preview risky entities before installing the latest risk engine. The preview shows the riskiest hosts, users, and services found in the 1000 sampled...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/6201/solutions/security/advanced-entity-analytics/turn-on-risk-scoring-engine
products:
  - Elastic Cloud Serverless
  - Elastic Security
applies_to:
  - Serverless Security projects: Generally available
  - Elastic Stack: Generally available
---

# Turn on risk scoring
<important>
  To use entity risk scoring, your role must have the appropriate user role or privileges. For more information, refer to [Entity risk scoring requirements](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/6201/solutions/security/advanced-entity-analytics/entity-risk-scoring-requirements).
</important>


## Preview risky entities

You can preview risky entities before installing the latest risk engine. The preview shows the riskiest hosts, users, and services found in the 1000 sampled entities during the time frame selected in the date picker.
<note>
  The preview is limited to two risk scores per Kibana instance or serverless project.
</note>

<applies-switch>
  <applies-item title="{ stack: ga 9.4+, serverless: ga }" applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Generally available since 9.4">
    To preview risky entities, find the **Entity Analytics** management page in the navigation menu or by using the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/6201/explore-analyze/find-and-organize/find-apps-and-objects).
  </applies-item>

  <applies-item title="{ stack: ga 9.0-9.3 }" applies-to="Elastic Stack: Generally available from 9.0 to 9.3">
    To preview risky entities, find **Entity risk score** in the navigation menu or by using the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/6201/explore-analyze/find-and-organize/find-apps-and-objects).
  </applies-item>
</applies-switch>


## Turn on risk scoring

<note>
  - To view risk score data, you must have alerts generated in your environment.
  - In Elastic Stack, if you previously installed the original user and host risk score modules, and you’re upgrading to Elastic Stack version 9.0 or later, refer to [Upgrade to the latest risk engine](#upgrade-risk-engine).
</note>

<applies-switch>
  <applies-item title="{ stack: ga 9.4+, serverless: ga }" applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Generally available since 9.4">
    <important>
      Turning on risk scoring and entity store on deployments with less than 4 GB of memory is not recommended, as the cluster might become heavily loaded by the processes required to run Entity Analytics. For optimal performance, we recommend at least 8 GB of memory.
    </important>
    In the default Kibana space, both the risk scoring engine and entity store are enabled automatically.For non-default spaces, if you're enabling risk scoring for the first time:
    1. Find the **Entity Analytics** management page in the navigation menu or using the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/6201/explore-analyze/find-and-organize/find-apps-and-objects).
    2. Turn the toggle on.
       <note>
       The toggle activates both the risk scoring engine and the [entity store](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/6201/solutions/security/advanced-entity-analytics/entity-store).
       </note>
    3. <applies-to>Elastic Stack: Generally available since 9.2</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Choose whether to retain [residual risk scores](/elastic/docs-content/pull/6201/solutions/security/advanced-entity-analytics/entity-risk-scoring#residual-risk-score).
    4. Optionally, specify a date and time range for the calculation.
    5. Choose whether to include `Closed` alerts in risk scoring calculations.
    6. <applies-to>Elastic Stack: Generally available since 9.3</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> Optionally, filter out alerts by defining conditions for the entity types or attributes that you want to exclude from the calculation. For example, if you don't want to calculate risk scores for users with a **Low impact** asset criticality level, enter `not user.asset.criticality: "low_impact"`.
  </applies-item>

  <applies-item title="{ stack: ga 9.0-9.3 }" applies-to="Elastic Stack: Generally available from 9.0 to 9.3">
    1. Find **Entity risk score** in the navigation menu or using the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/6201/explore-analyze/find-and-organize/find-apps-and-objects).
    2. Turn the toggle on.
    3. <applies-to>Elastic Stack: Generally available since 9.2</applies-to> Choose whether to retain [residual risk scores](/elastic/docs-content/pull/6201/solutions/security/advanced-entity-analytics/entity-risk-scoring#residual-risk-score).
    4. Optionally, specify a date and time range for the calculation.
    5. Choose whether to include `Closed` alerts in risk scoring calculations.
    6. <applies-to>Elastic Stack: Generally available since 9.3</applies-to> Optionally, filter out alerts by defining conditions for the entity types or attributes that you want to exclude from the calculation. For example, if you don't want to calculate risk scores for users with a **Low impact** asset criticality level, enter `not user.asset.criticality: "low_impact"`.
  </applies-item>
</applies-switch>

![Turn on entity risk scoring](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/6201/solutions/images/security-turn-on-risk-engine.png)


## Upgrade to the latest risk engine

<applies-to>
  - Elastic Stack: Generally available
</applies-to>

If you upgraded to 9.0 or later from an earlier Elastic Stack version, and you have the original risk engine installed, you can upgrade to the latest risk engine. You will be prompted to upgrade in places where risk score data exists, such as:
- The Entity Analytics dashboard
- The **User risk** tab on the Users page
- The **User risk** tab on a user’s details page
- The **Host risk** tab on the Hosts page
- The **Host risk** tab on a host’s details page

![Prompt to upgrade to the latest risk engine](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/6201/solutions/images/security-risk-engine-upgrade-prompt.png)

<applies-switch>
  <applies-item title="{ stack: ga 9.4+ }" applies-to="Elastic Stack: Generally available since 9.4">
    1. Click **Manage** in the upgrade prompt, or find the **Entity Analytics** management page in the navigation menu.
    2. Click **Start update** next to the **Update available** label.
    3. On the confirmation message, click **Yes, update now**. The old transform is removed and the latest risk engine is installed.
    4. When the installation is complete, confirm that the **Entity Risk Score** toggle is on.
  </applies-item>

  <applies-item title="{ stack: ga 9.0-9.3 }" applies-to="Elastic Stack: Generally available from 9.0 to 9.3">
    1. Click **Manage** in the upgrade prompt, or find **Entity risk score** in the navigation menu.
    2. Click **Start update** next to the **Update available** label.
    3. On the confirmation message, click **Yes, update now**. The old transform is removed and the latest risk engine is installed.
    4. When the installation is complete, confirm that the **Entity risk score** toggle is on.
  </applies-item>
</applies-switch>

<note>
  Previous risk score data is retained when you upgrade to the latest risk engine.
</note>