---
title: "SharePoint Online Search Query"
description: "Search SharePoint Online activity recorded to a File output in Activity Monitor, using General, User, Location, Item, Sharing, DLP, and Custom filters."
sidebar_position: 70
---

# SharePoint Online Search Query

You can search SharePoint Online activity that has been monitored and recorded to a File output.
When you select **SharePoint Online** from the magnifying glass dropdown menu, a New Search tab
opens with the applicable query filters.

![SharePoint Online - Search Quary Bar](/images/activitymonitor/8.0/admin/search/query/sharepointonlinesearchquerybar.webp)

The filters are separated into the following categories:

- General
- User
- Location
- Item
- Sharing
- DLP
- Custom

By default, the query is set to return all event activity for the past day. Configuring query
filters will scope results returned.

Set the filters as desired and click **Search**. The application searches through the appropriate
activity log files and returns the events that match the filters. You can
[Filter](/docs/activitymonitor/8.0/admin/search/overview.md#filter) and [Sort](/docs/activitymonitor/8.0/admin/search/overview.md#sort) the results using the column
headers. The [Export](/docs/activitymonitor/8.0/admin/search/overview.md#export) option is located beneath the Search button.

**Filter Value Entry**

When the dropdown menu is in front of a query filter, it is used to show or hide the filter entry
field. Field options vary based on the selected query filter:

- Textbox – Enter the filter value. If the field has a dropdown arrow, then you can select from
  values known to the application.
- Gray dropdown menu – Provides options to match the value against on of the following, which vary
  based on the filter:

    - Selected values – Filters by the value selected from the dropdown menu for the textbox
    - Simple string with wildcards – Filters by the value entered into the textbox, which contains
      an asterisk (\*) as the wildcard
    - Regular expression – Filters by the Regex entered into the textbox

## General Category

The General category scopes the query by the most common types of filters. The time frame filter
must be configured for every search query.

![SharePoint Online Search - General Filters](/images/activitymonitor/8.0/admin/search/query/generalfilters.webp)

This section has the following filters:

- From – Set the date and timestamp for the start of the activity range. The dropdown menu opens a
  calendar.
- To – Set the date and timestamp for the end of the activity range. The dropdown menu opens a
  calendar.
- Source – Filter the data by the source type: All, File and Page, Folder, List, Sharing and Access
  Request, Site Permissions, Site Administration, Synchronization, DLP, Sensitivity Label, Content
  Explorer, Other

    :::note
    Disabling a source that is also a category will hide that category from the query
    options.
    :::


- Workload
- Agent Hosts – Filter the data for a specific agent
- Search Limit – Set the maximum number of rows returned in the search results. The default is
  10,000 rows.

## User Category

The User category scopes the query by the user, or perpetrator of the activity.

![SharePoint Online Search - User Filter](/images/activitymonitor/8.0/admin/search/query/user.webp)

This section has the following filters:

- Name or ID
- Login
- IP Address
- Client App or Browser
- User Type – Filter the data by the type of user: All, Regular, Reserved, Admin, DcAdmin, System,
  Application, ServicePrincipal, CustomPolicy, SystemPolicy, Unknown

## Location Category

The Location category scopes the query by the location of the file.

![SharePoint Online Search - Location Filter](/images/activitymonitor/8.0/admin/search/query/location.webp)

This section has the following filters:

- URL
- File Name
- File Extension

## Item Category

The Item category scopes the query by the item.

![SharePoint Online Search - Item Filter](/images/activitymonitor/8.0/admin/search/query/item.webp)

This section has the following filters:

- Item
- Item Type – Filter the data by the type of item: All, Unknown, File, Folder, Web, Site, Tenant,
  DocumentLibrary, Page
- Modifications – Filter the data by the type of item: All, No Changes, Has attribute changes

## Sharing Category

The Sharing category scopes the query by the type of sharing.

![SharePoint Online Search - Sharing Filter](/images/activitymonitor/8.0/admin/search/query/sharing.webp)

This section has the following filters:

- Target Account
- Access
- Target Type – Filter the data by the type of target: All, Member, Guest, SharePointGroup,
  SecurityGroup, Partner, Unknown

## DLP Category

The DLP category scopes the query by the DLP policy.

![SharePoint Online Search - DLP Filter](/images/activitymonitor/8.0/admin/search/query/dlp.webp)

This section has the following filters:

- Policy Name

## Custom Category

The Custom category scopes the query by custom event activity.

![SharePoint Online Search - Custom Filter](/images/activitymonitor/8.0/admin/search/query/custom.webp)

This section has the following filters:

- Event Data
- Custom Event
