> 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.14/customize-cortex-xsoar/customize-and-configure-cortex-xsoar/incidents/classification-and-mapping/classify-events-using-a-classification-key.md).

# Classify Events Using a Classification Key

When an integration fetches incidents, it populates the rawJSON object in the incident object. The rawJSON object contains all of the attributes for the event. For example, source, when the event was created, the priority that was designated by the integration, and more. When classifying the event, you want to select an attribute that can determine what the event type is.

{% hint style="info" %}

### Note

You can also configure classifiers for indicators, by going to **Settings** → **OBJECTS SETUP** → **Indicators** → **Classification & Mapping** .
{% endhint %}

1. Go to Settings → OBJECTS SETUP → Incidents → **Classification & Mapping**.
2. Click **New** and select **Incident Classifier**.
3. Under **Get data**, select from where you want to pull the information based on which you will classify the incident types.
   * Pull from instance - select an existing integration instance.
   * Select schema - when supported by the integration, this will pull all of the fields for the integration from the database from which you can select by which to classify the events.
   * Upload JSON - upload a formatted JSON file which includes the field by which you want to classify.
4. Under **Select Instance**, select the instance from where you want to choose the value.
5. Under **Fetched data** select the value by which you want to classify the events.
6. Drag values from the **Unmapped Values** column to the relevant incident type on the right.

   You can optionally choose a default incident type for unclassified incidents from **Direct unclassified events to: Select**.

   ![classify\_incidents.png](/files/Lx4rYPtYHyYitRg5oTc4)

   If you do not choose a default incident type, the classifier will use the "default" incident type for unclassified incidents. The default incident type can be configured on the Incident Types page, and is set to "Unclassified" by default.
7. Click **Save**.
8. Go to Settings → INTEGRATIONS → **Instances**.
   1. Select the integration to which you want to apply the classifier.
   2. In the integration settings, under **Classifier**, select the classifier you created and click **Done**.


---

# 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.14/customize-cortex-xsoar/customize-and-configure-cortex-xsoar/incidents/classification-and-mapping/classify-events-using-a-classification-key.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.
