# Activity Log Search Criteria reference

> For the complete documentation index, see [llms.txt](https://doc.ibexa.co/en/saas/llms.txt).

Activity Log Search Criteria

Activity Log Search Criteria filter the activity log groups returned by activity log search.

You use them over the REST API, in the `criteria` element of the payload of the [`POST /activity-log-group/list`](https://doc.ibexa.co/en/saas/api/rest_api/rest_api_reference/rest_api_reference.html#tag/Activity-Log/operation/ibexa.activity_log.rest.activity_log_group.list.post) request. Each criterion is an object with a `type` property that selects the criterion, and its own arguments.

Criteria are applied to log entry groups. For example, with the `action` criterion, you get log entry groups that have at least one entry with this action (and possibly other actions as well).

For more information about the activity log itself, see [Recent activity](https://doc.ibexa.co/en/saas/administration/recent_activity/recent_activity/index.md).

## Value-based criteria

| Search Criterion                                                                                              | Search based on                                              |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [`action`](https://doc.ibexa.co/en/saas/search/activity_log_search_reference/action_criterion/index.md)       | Performed action name(s)                                     |
| [`logged_at`](https://doc.ibexa.co/en/saas/search/activity_log_search_reference/logged_at_criterion/index.md) | Before, after or at a given date and time                    |
| [`object_class`](https://doc.ibexa.co/en/saas/search/activity_log_search_reference/object_criterion/index.md) | Manipulated object's class name, and optionally objects' IDs |
| [`user`](https://doc.ibexa.co/en/saas/search/activity_log_search_reference/user_criterion/index.md)           | User performing the action                                   |

## Logical criteria

| Search Criterion | Description                                                                         |
| ---------------- | ----------------------------------------------------------------------------------- |
| `not`            | Logical NOT criterion that matches if the provided criteria don't match.            |
| `and`            | Logical AND criterion that matches if all the provided criteria match.              |
| `or`             | Logical OR criterion that matches if at least one of the provided criteria matches. |

Logical criteria take a `criteria` element with the criteria to combine:

```json
{
    "ActivityLogGroupListInput": {
        "criteria": [
            {
                "type": "or",
                "criteria": [
                    { "type": "action", "value": ["create"] },
                    { "type": "action", "value": ["publish"] }
                ]
            }
        ]
    }
}
```
