--- title: Define, save, and share a log data search description: Define, save, and share searches of log data to help determine the causes of Log Analytics alerts. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/health-log-analytics/hla-op-search-queries-manage-sow.html release: australia product: Health Log Analytics classification: health-log-analytics topic_type: task last_updated: "2026-03-12" reading_time_minutes: 2 keywords: [search queries, save search, share search, log data search, search parameters, Elasticsearch, query definition, search filters, assignment group sharing, time range selection, component selection] breadcrumb: [Review alert-related logs on the Log Viewer, Analyzing and resolving alerts, Health Log Analytics, ITOM AIOps, IT Operations Management] --- # Define, save, and share a log data search Define, save, and share searches of log data to help determine the causes of Log Analytics alerts. ## Before you begin Role required: evt\_mgmt\_operator or evt\_mgmt\_admin ## Procedure 1. Open the **Log Viewer** using one of the following methods: - Navigate to **Workspaces** > **Service Operations Workspace** and select the Log Viewer icon \(\[Omitted image "icon-log-viewer-sow.png"\] Alt text: Log Viewer icon.\). - While viewing log entries for an alert on the **Surrounding logs** tab, select **Log Viewer**. 2. Define a search. 1. Select the selection icon \(\[Omitted image "icon-selection-sow.png"\] Alt text: Selection icon.\) and then select **New search**. 2. Set the values of the search parameters in the search fields.
| Search field | Description |
|---|---|
| Query | Search query.**Tip:** The Log viewer uses the Elasticsearch search engine, so you can use any supported search term structure in the **Query** field. |
| Component | Logical component of the service instance that generated the event. Multiple CIs can sometimes perform the same function. |
| Time range | Time range to apply to the X-axis when displaying the returned data. The setting that you specify appears in the **Start time** and **End time** fields. Use one of the following methods:- Select a time period from the list. - Click **Custom range** to use the date and time picker to specify a range. **Note:** You can modify the settings in the **Start time** and **End time** fields manually. The selected time range shown in **Select range** then changes to Custom range. This feature is supported in the Health Log Analytics application, Version 20.0.11 - July 2021, and the Health Log Analytics Viewer application, Version 20.0.4 - July 2021, available from the [ServiceNow Store](https://store.servicenow.com/sn_appstore_store.do#!/store/home). **Note:** Saved searches do not include time range settings. |