# Activity Log Search Criteria reference

Activity Log Search Criteria are found in the `Ibexa\Contracts\ActivityLog\Values\ActivityLog\Criterion` namespace.

Those Criteria are to be used with `Ibexa\Contracts\ActivityLog\Values\ActivityLog\Query` for `Ibexa\Contracts\ActivityLog\ActivityLogServiceInterface::find`.

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

See [Searching in the Activity Log groups](https://doc.ibexa.co/en/latest/administration/recent_activity/recent_activity/#searching-in-the-activity-log-groups) for how to use a query, and an example combining several criteria.

## Value-based criteria

| Search Criterion                                                                                                            | Search based on                                              |
| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [`ActionCriterion`](https://doc.ibexa.co/en/latest/search/activity_log_search_reference/action_criterion/index.md)          | Performed action name(s)                                     |
| [`LoggedAtCriterion`](https://doc.ibexa.co/en/latest/search/activity_log_search_reference/logged_at_criterion/index.md)     | Before, after or at a given date and time                    |
| [`ObjectCriterion`](https://doc.ibexa.co/en/latest/search/activity_log_search_reference/object_criterion/index.md)          | Manipulated object's class name, and optionally objects' IDs |
| [`ObjectNameCriterion`](https://doc.ibexa.co/en/latest/search/activity_log_search_reference/object_name_criterion/index.md) | Manipulated object's name, in whole or in part               |
| [`UserCriterion`](https://doc.ibexa.co/en/latest/search/activity_log_search_reference/user_criterion/index.md)              | User performing the action                                   |

## Logical criteria

| Search Criterion | Description                                                                         |
| ---------------- | ----------------------------------------------------------------------------------- |
| `LogicalNot`     | Logical NOT criterion that matches if the provided Criteria don't match.            |
| `LogicalAnd`     | Logical AND criterion that matches if all the provided Criteria match.              |
| `LogicalOr`      | Logical OR criterion that matches if at least one of the provided Criteria matches. |
