--- title: "Create a rule from a search query" slug: "create-a-rule-from-a-search-query-1" updated: 2026-09-12T15:51:56Z published: 2026-09-12T15:51:56Z canonical: "docs.trellix.com/create-a-rule-from-a-search-query-1" --- > ## 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. # Create a rule from a search query You can create a rule from a search query when the search syntax is valid from the search results table, saved search page, or search activity page. You can also create a rule from a search query without running the search. To create a rule from a search query: 1. From the **Main Menu** ![Helix_MegaMenu.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-209bd257-0dfc-f5f1-1063-dac290c8ea6f(6).png?sv=2026-02-06&spr=https&st=2026-11-19T23%3A10%3A28Z&se=2026-11-20T00%3A10%3A28Z&sr=c&sp=r&sig=l%2FUemkqLtzufP4KzJ92Rh3lQQMhU%2BSi3vTKytEAoQnc%3D), select **Search** and do one of the following: - Enter a valid search query, and beside the search button select **More Options** ![more-options.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-257359a4-a589-4772-de7f-04a343f85f8b(3).png?sv=2026-02-06&spr=https&st=2026-11-19T23%3A10%3A28Z&se=2026-11-20T00%3A10%3A28Z&sr=c&sp=r&sig=l%2FUemkqLtzufP4KzJ92Rh3lQQMhU%2BSi3vTKytEAoQnc%3D) > **Create Rule from Query**. - Select **Search Activity** or **Saved Search**, locate the search and at the end of the row select **More Options** ![more-options.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-257359a4-a589-4772-de7f-04a343f85f8b(3).png?sv=2026-02-06&spr=https&st=2026-11-19T23%3A10%3A28Z&se=2026-11-20T00%3A10%3A28Z&sr=c&sp=r&sig=l%2FUemkqLtzufP4KzJ92Rh3lQQMhU%2BSi3vTKytEAoQnc%3D) > **Create Rule from Query**. 2. If you are a federated customer, select the tenant you want to create the rule for. The new rule opens in a new tab. Make any changes you want and click **Save**.