Skip to main content

An official website of the United States government

Here’s how you know

Search your logs and metrics

You can search, filter, and visualize logs and metrics from Cloud.gov Logs through OpenSearch Dashboards.

How to search logs and metrics

  1. Log in to Cloud.gov Logs

  2. Select the correct tenant (your organization) when prompted

  3. From the main navigation, click ☰ → OpenSearch DashboardsDiscover

    Screenshot of OpenSearch Dashboards with an arrow pointing to the hamburger menu icon used to open the main navigation

  4. On the Discover page, choose the index pattern for what you want to search:

    Screenshot of OpenSearch Dashboards showing the expanded dropdown menu for selecting an index pattern

  5. Optionally, enter a search in the search bar. By default, the search bar supports queries using Dashboards Query Language (DQL). Hit "Enter" on your keyboard to apply your search query.

    Screenshot of OpenSearch Dashboards showing the search bar for searching logs on the Discover page

  6. Optionally, add filter(s) to constrain the results of your search. Click the Save button to apply your filter

    Screenshot of OpenSearch Dashboards showing an open modal window for adding a search filter on the Discover page

  7. Optionally, adjust the timeframe for your search

    Screenshot of OpenSearch Dashboards highlighting buttons for changing the search timeframe on the Discover page

  8. To save your search and access it again later, click the Save link near the top right of the page. In the modal window that appears, enter a descriptive name for your search for easy reference later.

    Screenshot of OpenSearch Dashboards with an arrow pointing to the Save link on the Discover page

Creating field-based visualizations

  1. From the Discover page, hover your cursor over any field under the Available fields heading

    Screenshot of OpenSearch Dashboards with the cursor hovering over a field name under the list of available fields on the Discover page

  2. Click the icon that looks like a magnifying glass over a box

    Screenshot of OpenSearch Dashboards with the cursor hovering over a field name under the list of available fields on the Discover page and an arrow pointing to an icon for visualizing the field values

  3. A pop-up will appear summarizing the top 5 values for the field. Click the Visualize button, which will open a page for creating a new visualization based on the field values

    Screenshot of OpenSearch Dashboards showing a pop-up window summarizing the top 5 field values within the search results on the Discover page

  4. Customize the visualization as desired and click the Save button to save it

    Screenshot of OpenSearch Dashboards showing the action links on the create visualization page with an arrow pointing to the Save button

Tips for advanced queries

  • Combine multiple filters:

    @level: ERROR AND @cf.org: my-agency
  • Use wildcards (*) to match similar values:

    @cf.app: myapp-*
  • Save searches to reuse filters or share with teammates in the same tenant.

  • Export results to CSV for offline review or ingestion into your agency SIEM. (Verify export storage complies with M-21-31 and agency policy.)

Troubleshooting search issues

Refer to the general troubleshooting guide.

GSA.gov

An official website of the U.S. General Services Administration

Looking for U.S. government information and services?
Visit USA.gov