You can use the view filter to control which captured items Burp Logger displays. For more information on which items Logger captures, see Burp Logger capture filter.
Items that are not displayed because of view filter settings can be accessed by removing the view filter.
You can configure the Logger view filter in two different ways:
To filter which of the captured items are displayed, click on the View filter bar. This opens the Logger view filter window.
The View filter bar only appears when there is one or more items recorded in Logger.
On the Settings mode tab, you can apply a view filter using the following options:
Choose which request types Logger displays. You can select from:
Choose which MIME type Logger displays, such as HTML or XML.
Choose which status codes Logger displays.
Choose which Burp tools Logger displays items from. This enables you to ignore traffic from a noisy tool, or direct Logger to display traffic from one tool only. By default, all tools are selected.
Choose to display only records that contain a specific search term:
Choose which types of file Logger displays, such as PHP or CSS.
Choose whether to show only items that have been annotated, either by a comment or highlight. To learn how to annotate items, see Working with Burp Logger entries.
On the Bambda mode tab, you can write Java-based Bambdas to apply custom view filters to Logger.
Two objects of the Montoya API are available to help you write your Bambdas:
LoggerHttpRequestResponse
Utilities
To filter the view in Logger using a Bambda:
In Logger, click the View filter bar to open the Logger view filter window.
The filter bar only appears when there are one or more items recorded in Logger.
Click Apply. This runs the Bambda and outputs any console output or compilation errors into the console. You must resolve any compilation errors before Burp can apply your Bambda.
Click Apply & close.
Burp compiles your Bambda and applies it to every item already captured in Logger, and to any future items captured in this project.
Using slow running or resource-intensive Bambdas can slow down Burp. Write your Bambda carefully to minimize performance implications.
In the example below, we'll create a Bambda that filters the Logger view to display only requests that meet the following criteria:
In this example, our Bambda is:
if (!requestResponse.hasResponse())
{
return false;
}
var timingData = requestResponse.timingData();
return timingData.timeBetweenRequestSentAndStartOfResponse().toMillis() > 1000;
If you have already used Settings mode to configure a Logger view filter, you can convert this to a Bambda.
Converting your filter settings overwrites any existing Bambda applied to your Logger view.
To convert your view filter settings to a Bambda:
Your filter is now converted into a Bambda, enabling you to customize it further using Java.
For more information on how to load Bambdas, save your Bambda, or troubleshoot errors with your Bambda, see our Bambdas documentation.