WP Debug Toolkit 1.2.0 is LIVE. Get $300 discount on the lifetime deal now
Use Discount Code WPDTLTD

To isolate specific errors in WP Debug Toolkit’s (WPDT) Error Logs view, type a search term into the search bar using the +include or -exclude operator syntax, and use the filter dropdowns (All levels, All time, All sources, and All plugins, plus All themes when themes appear in the log) to narrow results by attribute. Combine both mechanisms to reduce a noisy log to only the entries relevant to what you are investigating.

In This Guide

How It Works

WPDT’s Error Logs view provides two independent filtering mechanisms that work together. The search bar accepts free-text operators that include or exclude entries by string. The filter row beneath the search bar provides four dropdown controls that narrow entries by attribute. Each mechanism applies independently, and you can run both simultaneously.

  • +term includes, -term excludes: Prefix a search term with + to show only entries containing that term. Prefix with – to hide entries containing that term. Use both operators in the same search to include one string and exclude another at the same time. Entering +woocommerce and -notice as separate chips, for example, surfaces every WooCommerce-related entry and strips out the notice-level noise in one pass.
  • Up to five filter dropdowns narrow by dimension: All levels, All time, and All sources are always present. All plugins and All themes appear when plugin or theme file paths exist in the log data. All active filters use AND logic, so if you select “Level: Warning” and “Source: Plugins”, the viewer shows only warnings that originate from plugins. Combine any active filter with the search bar for precise results.

Before You Begin

This guide assumes the Viewer App is installed and you are viewing the Error Logs with at least one log entry present. If you have not set up the Viewer App yet, start with Setting Up the WordPress Error Logs Viewer App before continuing. If your Error Logs view is empty in WP Debug Toolkit › Overview › Error Logging under Debug Constants, enable Debug Mode and Error Logging, then trigger the behavior you want to capture and return here.

How to Search WordPress Error Logs by Keyword or Term

Step 1: Locate the Search Bar

The search bar sits at the top of the Error Logs view. You can press / from anywhere in the viewer to jump the cursor directly into the search bar.

wp-debug-toolkit-viewer-app-search-bar

Step 2: Type a Search Term With an Operator

To show only entries from a specific plugin, type +plugin-name into the search bar. To hide entries containing a specific string, type -string. Press Enter or type a comma after each term to commit it as a chip. 

The filter applies only to committed chips, so text you are still typing has no effect. To combine operators, commit each as its own chip. For example, if you type +woocommerce and press Enter, then type -deprecated and press Enter, the search results include WooCommerce entries and exclude anything containing “deprecated.”

wp-debug-toolkit-search-bar-active-term-term-combination

Step 3: Review the Filtered Results

The header counts update immediately after you commit each term. Press Esc to clear the search and return to the full view.

What You Should See: The entry list narrows to entries matching your search. The Total count in the header reflects the filtered set, not the full log.

Search Examples

SearchWhat It Finds
fatalEntries containing “fatal” anywhere
+elementor, +databaseEntries containing either “elementor” or “database”
+timeout, -cronTimeout errors not related to cron
class-wc-orderEntries mentioning the WooCommerce order class file

How to Filter WordPress Error Logs by Level, Time, Source, or Plugin

Step 1: Toggle the Filter Row Open

Click the F filter icon in the toolbar to reveal the four filter dropdowns below the search bar.

wp-debug-toolkit-viewer-app-filtering-options

Step 2: Select a Value From Any Dropdown

Click All levels to filter by error level. The dropdown lists five options: Notice, Warning, Fatal, Parse, and Error

Click All time to filter by time range. Available ranges are All time, Last minute, Last 5 minutes, Last 15 minutes, Last 30 minutes, Last hour, Last 6 hours, Last 24 hours, and Last 7 days

Click All sources to narrow by code origin. Source options are WordPress Core, Plugins, Themes, and Custom, where Custom covers errors from mu-plugins or custom code directories. 

Click All plugins to narrow entries to a specific plugin. The list populates dynamically from file paths in the log data, so it reflects what has actually generated errors rather than all installed plugins. 

Click All themes to narrow entries to a specific theme. This option only appears when a theme generates an error. The theme list populates the same way as the plugin list, from file paths present in the log data.

wp-debug-toolkit-viewer-app-filter-levels

Step 3: Reset Filters When Finished

Click the Reset button at the right end of the filter row to clear all active dropdown selections and return to the full log view. You can also press 0 while the filter panel is open to reset all filters to their defaults. Neither Reset nor 0 affects the search bar. Press Esc to clear the search bar separately if a search term is still active.

✅What You Should See: The entry list returns to all entries that match any remaining active controls. When one or more filters are active, an “{N} active” pill appears next to the Reset button, indicating how many filters are applied. The Reset button itself shows 0, its keyboard shortcut.

wp-debug-toolkit-viewer-app-filter-reset-button

How to Export Filtered Error Logs Results

Step 1: Apply Filters and Search Terms

Set the filters and search operators that define the data you want to export. The export captures the current filtered view, not the full log.

Step 2: Click the Export Button

Click the Export button in the toolbar to download/export your error log data.

⚠️Warning: The Clear button sits next to the Export button in the toolbar. Clicking Clear permanently deletes log entries. Take extra precaution not to press the wrong button.

wp-debug-toolkit-viewer-app-filtered-result-export-button

Combining Filters and Search

If you set ‘Level: Error’ and ‘Source: Plugins’ and then search for +stripe, it tells the viewer to show only error-level entries from plugins that mention “stripe.” No entry reaches the list unless it satisfies every active filter and the search term simultaneously. This combination is the fastest way to isolate a specific problem when you know both its origin and a keyword likely to appear in the message.

WP-CLI Filtering

The wp dbtk log read command exposes the full filtering surface of the Error Logs view from the command line. Every dropdown and search operator available in the viewer has a CLI equivalent.

bash
# Filter by error level -- comma-separate multiple levels, no spaces
wp dbtk log read --level=error
wp dbtk log read --level=fatal,error

# Filter by source type
wp dbtk log read --source=plugin     # core, plugin, theme, or custom
wp dbtk log read --source=core

# Filter by plugin -- substring match against the file path, case-insensitive
wp dbtk log read --plugin=woocommerce
wp dbtk log read --level=error --plugin=acf

# Filter by theme
wp dbtk log read --theme=twentytwentyfour

# Filter by time range -- mirrors the All time dropdown in the viewer
wp dbtk log read --since=5m          # 1m, 5m, 15m, 30m, 1h, 6h, 24h, 7d
wp dbtk log read --since=1h --level=warning

# Filter by message text -- same +include/-exclude operators as the search bar
wp dbtk log read --search="+undefined -deprecated"

# Combine flags for precise results
wp dbtk log read --since=30m --source=plugin --plugin=elementor --level=error,fatal --format=json

# Control output volume and format
wp dbtk log read --limit=50          # default is 100; applies after all filters
wp dbtk log read --level=fatal --limit=50 --format=json   # table, json, or csv

Three behaviors are worth knowing before you rely on output. First, --limit caps the count of parsed, filtered entries. It is not a raw line count. 

Second, reading always starts from the tail of the file, so very old entries outside the tail window may not appear even without --since

Third, --plugin matches anywhere in the source path string, not against a strict plugin slug, so a partial name like acf matches advanced-custom-fields and any other path containing that substring.

For the full flag reference on your install, run wp help dbtk log read.

Common Issues and How to Fix Them

Search Returns No Results Even Though Matching Errors Exist in the Log

Likely cause: The search term does not match the exact string as it appears in the log entry. 

Fix: Broaden the search term, or open a log entry and read its exact wording before applying the + operator. Searching without an operator prefix first confirms that the string exists in the log before you narrow it.

Reset Button Clears Filters but the Entry List Still Looks Filtered

Likely cause: A search term remains active in the search bar. The search bar and the filter dropdowns are independent controls. Clicking Reset clears all dropdown selections but does not affect the search bar. 

Fix: Manually clear the search bar after clicking Reset

Filter & Search WordPress Error Logs — Frequently Asked Questions

Can I Combine Multiple +include Terms in a Single Search?

Yes, but the logic differs between the Viewer app and WP-CLI. In the Viewer, multiple + terms use OR logic. Commit +woocommerce and +fatal as two separate chips, and the Viewer returns any entry containing either word. In WP-CLI, multiple include terms use AND logic. --search= "+woocommerce +fatal" returns only entries containing both words. Exclude terms work the same way on both: any single -term match drops the entry. Matching is case-insensitive on both. There is no limit on the number of operators you can combine.

Does WPDT Deduplicate Repeated Log Entries Automatically, or Do I Need to Filter Them Out Manually?

Neither. WPDT gives you a dedicated toggle for deduplication. Press G in the viewer to activate grouping. When grouping is enabled, identical entries collapse into a single row that shows a repeat count (×259, for example) and the timestamp of the first occurrence. Press G again to return to the ungrouped view. Grouping is off by default, so a log showing thousands of entries will collapse significantly the first time you activate it.

Filter & Search WordPress Error Logs — Related Documentation

How to Use the Error Log Viewer in WordPress – New to the viewer? Start here for a full walkthrough of the Error Logs view, including the toolbar, header counts, and how to navigate entries.

How to Use the File Viewer – Once you’ve found the entry you’re looking for, expand its stack trace and read the exact PHP file and line number that triggered it, without leaving the viewer.

How to Export WordPress Error Logs  – Filtered your log down to the entries that matter? Export them as a file to share with a client or pick apart offline.

On this page
Try WP Debug Toolkit
The best error log viewer with amazing developer tools to help you troubleshoot your WordPress site securely and efficiently. Something something more.