Created
May 27, 2025 14:45
-
-
Save jonfriesen/a856903938327a9f94cbd51ee8ebd8b1 to your computer and use it in GitHub Desktop.
Qtap HTTP Capture config file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a simple example of a qtap config that captures HTTP transactions and | |
# stores writes them to stdout. This includes headers and bodies if the level is | |
# set to details or full. | |
# | |
version: 2 | |
services: | |
event_stores: | |
- type: stdout | |
object_stores: | |
- type: stdout | |
stacks: | |
basic_reporting: | |
plugins: | |
- type: http_capture | |
config: | |
level: summary # (none|summary|details|full) | |
format: text # (json|text) | |
rules: | |
- name: full log httpbin.org | |
expr: request.host == "httpbin.org" | |
level: full | |
- name: details log on 500 | |
expr: response.status >= 500 | |
level: details | |
- name: full log on 400 | |
expr: response.status >= 400 && response.status < 500 | |
level: full | |
- type: report_usage | |
tap: | |
direction: egress # (egress|egress-external|egress-internal) | |
ignore_loopback: true | |
audit_include_dns: false | |
http: | |
stack: basic_reporting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment