@cryptotaxi247 / netdata-1 / commits / 003052663

docs: update docs/web-log-url-patterns-field-fix (#22443)

* docs: Added 4 concrete URL pattern examples (glob, regexp, string, negative glob) and a matcher syntax reference note to the url_patterns detailed_description in weblog metadata.yaml. * docs(weblog): fix url_patterns examples and matcher negation note Agent-Logs-Url: https://github.com/netdata/netdata/sessions/bcfdcc1a-918a-4add-91eb-b23f81be8925 Co-authored-by: Ancairon <70198089+Ancairon@users.noreply.github.com> * docs(weblog): fix matcher field names and negation syntax Agent-Logs-Url: https://github.com/netdata/netdata/sessions/f28dd24d-0c5e-4802-92e9-c88b0b20b187 Co-authored-by: Ancairon <70198089+Ancairon@users.noreply.github.com> * docs: Execution completed * Apply suggestions from code review Co-authored-by: Fotis Voutsas <fotis@netdata.cloud> --------- Co-authored-by: nedi-app[bot] <nedi-app[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Ancairon <70198089+Ancairon@users.noreply.github.com> Co-authored-by: Fotis Voutsas <fotis@netdata.cloud>

nedi-app[bot] committed May 25, 2026 at 13:08 UTC 00305266364e686c11b3284739e47ba965d98f77
1 file changed +28 -4
src/go/plugin/go.d/collector/weblog/metadata.yaml
+28 -4
@@ -121,17 +121,41 @@ modules:
121 ```yaml
122 url_patterns:
123 - name: name1
124 - pattern: pattern1
124 + match: pattern1
125 - name: name2
126 - pattern: pattern2
126 + match: pattern2
127 ```
128 +
129 + Examples:
130 +
131 + ```yaml
132 + url_patterns:
133 + - name: api
134 + match: '* /api/*'
135 + - name: api_versioned
136 + match: '~ ^/api/v[0-9]+/.*'
137 + - name: health_endpoint
138 + match: '= /health'
139 + - name: not_static_css
140 + match: '!* *.css'
141 + ```
142 +
143 + Pattern values use the [matcher library](/src/go/pkg/matcher/README.md#supported-format) syntax:
144 +
145 + - `=` — string (exact match)
146 + - `*` — glob patterns
147 + - `~` — regular expressions
148 + - `!` — negates either short syntax (`!* ...`) or long syntax (`!simple_patterns:...`)
149 + - `simple_patterns` — simple patterns (long syntax only)
150 +
151 + Patterns are matched against the full original request URI (`$request_uri`).
152 - name: url_patterns.name
153 description: Used as a dimension name.
154 default_value: ""
155 required: true
156 group: Customization
133 - - name: url_patterns.pattern
134 - description: Used to match against full original request URI. Pattern syntax in [matcher](https://github.com/netdata/netdata/tree/master/src/go/pkg/matcher#supported-format).
157 + - name: url_patterns.match
158 + description: Used to match against full original request URI. Match syntax in [matcher](/src/go/pkg/matcher/README.md#supported-format).
159 default_value: ""
160 required: true
161 group: Customization