--- id: pin-a-search title: Pin a Search description: Pin a search so it runs in the background independent of the browser session, or let Sumo Logic prompt you automatically and email you when it completes. slug: /help/docs/search/get-started-with-search/search-page/pin-a-search/ canonical: https://www.sumologic.com/help/docs/search/get-started-with-search/search-page/pin-a-search/ --- import useBaseUrl from '@docusaurus/useBaseUrl'; The *pinned search* feature allows you to start a search, then "pin" it, so it will continue running in the background independent of the browser session. Then, you can close the **Search** page or log out and find your results later. To see your pinned searches: * [**New UI**](/docs/get-started/sumo-logic-ui/). In the main Sumo Logic menu, select **Logs > Pinned searches**. * [**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select **Recent > Pinned Searches**. There are two ways to pin a search and run it in the background: * If a search completes in under about a minute, you can pin it yourself from the search bar menu. See [Pin and unpin a search](#pin-and-unpin-a-search). * If a search's elapsed time exceeds about a minute, Sumo Logic prompts you to run it in the background automatically and emails you a link to the results when it's done. See [Run a slow search in the background automatically](#run-a-slow-search-in-the-background-automatically). Once pinned, a search will run in the background for up to 24 hours. If it has not finished by then, it will be paused. There is no notification when your search is paused, but you can just restart the search to continue the query. Search results are available for three days. Once a search is pinned, you can easily unpin it, or remove it from the **Pinned searches** list. Limitations: * There is a limit of ten pinned searches per user. * Queries that use the [save operator](/docs/search/search-query-language/search-operators/save) cannot be pinned. * There is a known issue that may cause pinned searches to be lost when Sumo Logic performs an upgrade. For information on scheduled maintenance for your deployment, see [Sumo Logic status](https://status.sumologic.com). ## Pin and unpin a search If a search completes in under about a minute, pin it manually so you can find it later. 1. Enter a query in the search box and click **Start Search**. 1. After the search completes, click the three-dot kebab icon and click **Run in Background (Pin)** from the provided options.
Run in Background (Pin) menu option 1. A message confirms where you can find the pinned search later. Since the search already finished, you will not receive an email notification. The pinned search is named by default with the name of the search.
Pinned search confirmation message 1. To change the name of the pinned search, double-click the **Search** tab to activate the name field and enter a new name. 1. To preserve the pinned search, follow the steps in [Save a pinned search](#save-a-pinned-search). 1. To unpin the search, click the three-dot kebab icon and click **Unpin** from the provided options.
Unpin menu option 1. A confirmation dialog appears, since unpinning closes the tab and you will not be able to access the results. Click **Unpin** to confirm. The search is removed from the **Pinned searches** list. (Removing an instance of a saved search from the **Pinned searches** list does not delete the saved search from your **Personal** folder.)
Confirm Unpin Search dialog ## Run a slow search in the background automatically If a log search's elapsed time exceeds about one minute, a banner appears below the log query bar with the message "This search is taking longer than expected" and a **Run in Background** link.
Banner suggesting you run a slow search in the background Click **Run in Background** to pin the search, the same as [pinning a search manually](#pin-and-unpin-a-search). Because the search is still running, a message confirms where you can find the search later, and that you'll receive an email notification when it completes.
Message confirming your background search is available as a pinned search Once pinned, the search appears in your **Pinned searches** list, and when it completes, you receive an email notification with a link to the results, so you do not need to keep the **Search** page open while you wait. Limitations: * This automatic prompt only applies to log searches. It does not appear for metrics searches. * The banner does not appear if you have already reached the limit of ten pinned searches for your user. * The banner does not appear while you're using [Emulate log search](/docs/manage/users-roles/roles/create-manage-roles/#test-a-roles-log-access-rights) to test a role's or user's log access rights, since emulated searches use a different permission flow. ## Save a pinned search When you save a pinned search, it appears in your **Pinned searches** list. 1. Click the name of the search to open it in the **Search** tab. 1. In the **Search** tab, click the three-vertical dot icon and click **Save As** from the provided options. The **Save Item** dialog appears. 1. Enter a unique **Name** in the text field. In our example below, we entered "Invoke Frequency". 1. Optionally, enter a **Description**. 1. Click **Save**.
Save a search The search is saved to your **Personal** folder. ## Manage pinned searches To open a previously pinned search: 1. In the **Pinned searches** list, click the name of the search. 1. The search query and any existing results are displayed in the **Search** tab. 1. To run a new instance of the search, change the time range expression and click **Start Search**. To rename a pinned search: 1. In the **Pinned searches** list, click the name of the search. 1. The search query and any existing results are displayed in the **Search** tab. 1. Double-click the **Search** tab to reactivate the name field. 1. Enter a new name and press **Enter**.