--- title: "Generate compliance events" slug: "generate-compliance-events" tags: ["Product Usage", "ePolicy Orchestrator – On-prem", "ePO 5.10.x", "ePO 5.10.0"] updated: 2026-09-07T17:47:05Z published: 2026-09-07T17:47:05Z canonical: "docs.trellix.com/generate-compliance-events" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Generate compliance events Compliance events are used in rollup queries to aggregate data in a single report. 1. Select **Menu** → **Automation** → **Server Tasks** , then click **New Task**. 2. On the **Description** page, type a name for the new task, then click **Next**. 3. From the **Actions** drop-down menu, select **Run Query**. 4. Click browse (**...**) next to the **Query** field and select a query. The **Select a query from the list** dialog box appears with the **My Groups** tab active. 5. Select the compliance-defining query. This could be a default query, such as **Trellix Agent Compliance Summary** in the **Trellix Groups**section, or a user-created query, such as one described in Creating a query to define compliance. 6. From the **Sub-Actions** drop-down menu, select **Generate Compliance Event** and specify the percentage or number of target systems, then click **Next**. > [!NOTE] > Note > > You can generate events using the **generate compliance event** task if noncompliance rises above a set percentage or set number of systems. 7. Schedule the task for the time interval needed for **Compliance History** reporting. For example, if compliance must be collected on a weekly basis, schedule the task to run weekly. Click **Next**. 8. Review the details, then click **Save**.