--- title: "Example workflow: Create a query with a relative time range and make it available to others in the SOC." slug: "example-workflow-create-query-relative-time-range-soc-1" updated: 2026-09-13T08:42:34Z published: 2026-09-13T08:42:34Z canonical: "docs.trellix.com/example-workflow-create-query-relative-time-range-soc-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. # Example workflow: Create a query with a relative time range and make it available to others in the SOC. A relative time range is based on the current time, which allows you to search for data that you can run periodically without having to change the query. Relative time is based on the current time. Relative time ranges include "Last 2 hours," "Last 90 days," Last 3 weeks," "Last 18 months," and so on. It is important to use a relative time range with queries you intend to share. For example, a query based on a calendar date range will fail if other analysts run it after the end of that date range. This workflow includes the following tasks: 1. Decide what data you need to collect. 2. Build the query using a relative time range and criteria that returns relevant data. See [Creating a search query](/network-and-platform/docs/creating-a-search-query-1) . 3. Run the search. See [Run a new search](/network-and-platform/docs/run-a-new-search-1). You can check the status of the search and watch events being streamed while the search is running. See [Review and manage search activity](/network-and-platform/docs/view-and-manage-search-activity-1) . 4. Review the search results. See [Working with search results](/network-and-platform/docs/working-with-search-results-1). 5. Save the query so you and others in your environment can access it. See [Save a search](/network-and-platform/docs/save-a-search-1). 6. Copy the query in the Search bar to share it with colleagues who work in other environments.