> 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/indicators/indicator-expiration.md).

# Indicator Expiration

Indicators can have the Expiration Status field set to Active or Expired, which is determined by the **Expiration** field. When indicators expire, they still exist in Cortex XSOAR, meaning they are still displayed and you can still search for them. A job that runs daily checks for newly expired indicators and updates the **Expiration Status** field.

{% hint style="info" %}

### Note

If an indicator is marked for expiration, the status does not change to expired until the hourly job runs.
{% endhint %}

When indicators expire, the expirationStatus and expiration fields are updated. You can use an indicator field trigger script to take actions based on indicator expiration.

You can set the default expiration method for indicators either to never expire or to expire after a specific period of time. The default expiration method is set by the indicator type. For more information, see Indicator Type Profile.

This is the hierarchy by which indicators are expired.

| Method            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Manual            | A user manually expires the indicator or sets it to never expire. This method overrides all other methods.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Automation script | <p>Use the <strong><code>expireIndicators</code></strong> command to change the expiration status to Expired for one or more indicators. This script accepts a comma-separated list of indicator values, and supports multiple indicator types. For example, you can set the expiration status for an IP address, domain, and file hash:<strong><code>!expireIndicators value=1.1.1.1,safeurl.com,45356A9DB614ED7161A3B9192E2F318D0AB5AD10</code></strong></p><p>(Same in the indicator expiration hierarchy as manual.)</p><p>Use the <strong><code>!setIndicators</code></strong> command to reset the indicators' expiration value. The parameter's value can either be <code>never</code> or a time in ISO 8601 format. For example, <code>2006-01-02T15:04:05Z</code> (for UTC time) or <code>2006-01-02T15:04:05Z07:00</code> (UTC +7 hours).</p><p>Examples:</p><ul><li><code>!setIndicators indicatorsValues=watson.com expiration=Never</code></li><li><code>!setIndicators indicatorsValues=watson.com expiration=2006-01-02T15:04:05Z</code></li></ul>                                                                                                                                                                                                                      |
| Feed integration  | <p>Some integrations support setting the expiration method on an integration instance level, which overrides the method defined for the indicator type.</p><p>If a feed's expiration method is set to When removed from the feed, indicators that are removed from the feed immediately expire. Note that if the feed is disabled, its expiration method reverts to that of the indicator type (time-based).</p><p>Time-based expiration is set according to feed reliability. If the same indicator appears on multiple feeds, the feed with the highest reliability determines the indicator's expiration time. If multiple feeds have the same reliability, the last feed to add or modify the indicator determines its expiration time.</p><p>Example:</p><ul><li>An indicator was initially fetched by Feed A, then by Feed B.</li><li>Both feeds have the same reliability.</li><li>Feed B's indicators are set to expire When removed from the feed.</li><li>Feed B is now disabled.</li></ul><p>After Feed B is disabled, the indicator's expiration method reverts to that of the indicator type (for example, expire after 7 days). However, if Feed A then modifies the indicator (or removes and re-adds it), the expiration method changes back to Feed A's settings.</p> |
| Indicator type    | The expiration method (interval or never) is defined according to the indicator type, which applies to all indicators of this type. This is the default expiration method for an indicator.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |


---

# 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/indicators/indicator-expiration.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.
