Skip to content

Commit 14c84c0

Browse files
authored
[1.x] Usage of brackets for a URL containing IPv6 address (#1131) (#1168)
1 parent e27a948 commit 14c84c0

File tree

10 files changed

+38
-6
lines changed

10 files changed

+38
-6
lines changed

CHANGELOG.next.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Thanks, you're awesome :-) -->
2222

2323
#### Improvements
2424

25+
* Note `[` and `]` bracket characters may enclose a literal IPv6 address when populating `url.domain`. #1131
26+
2527
#### Deprecated
2628

2729
### Tooling and Artifact Changes

code/go/ecs/url.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/field-details.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7276,6 +7276,8 @@ URL fields provide support for complete or partial URLs, and supports the breaki
72767276

72777277
In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the `domain` field.
72787278

7279+
If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC 2732), the `[` and `]` characters should also be captured in the `domain` field.
7280+
72797281
type: keyword
72807282

72817283

experimental/generated/beats/fields.ecs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5253,7 +5253,11 @@
52535253
description: 'Domain of the url, such as "www.elastic.co".
52545254
52555255
In some cases a URL may refer to an IP and/or port directly, without a domain
5256-
name. In this case, the IP address would go to the `domain` field.'
5256+
name. In this case, the IP address would go to the `domain` field.
5257+
5258+
If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC
5259+
2732), the `[` and `]` characters should also be captured in the `domain`
5260+
field.'
52575261
example: www.elastic.co
52585262
- name: extension
52595263
level: extended

experimental/generated/ecs/ecs_flat.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8027,7 +8027,10 @@ url.domain:
80278027
description: 'Domain of the url, such as "www.elastic.co".
80288028
80298029
In some cases a URL may refer to an IP and/or port directly, without a domain
8030-
name. In this case, the IP address would go to the `domain` field.'
8030+
name. In this case, the IP address would go to the `domain` field.
8031+
8032+
If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC 2732),
8033+
the `[` and `]` characters should also be captured in the `domain` field.'
80318034
example: www.elastic.co
80328035
flat_name: url.domain
80338036
level: extended

experimental/generated/ecs/ecs_nested.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9295,7 +9295,11 @@ url:
92959295
description: 'Domain of the url, such as "www.elastic.co".
92969296
92979297
In some cases a URL may refer to an IP and/or port directly, without a domain
9298-
name. In this case, the IP address would go to the `domain` field.'
9298+
name. In this case, the IP address would go to the `domain` field.
9299+
9300+
If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC
9301+
2732), the `[` and `]` characters should also be captured in the `domain`
9302+
field.'
92999303
example: www.elastic.co
93009304
flat_name: url.domain
93019305
level: extended

generated/beats/fields.ecs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5341,7 +5341,11 @@
53415341
description: 'Domain of the url, such as "www.elastic.co".
53425342
53435343
In some cases a URL may refer to an IP and/or port directly, without a domain
5344-
name. In this case, the IP address would go to the `domain` field.'
5344+
name. In this case, the IP address would go to the `domain` field.
5345+
5346+
If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC
5347+
2732), the `[` and `]` characters should also be captured in the `domain`
5348+
field.'
53455349
example: www.elastic.co
53465350
- name: extension
53475351
level: extended

generated/ecs/ecs_flat.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8110,7 +8110,10 @@ url.domain:
81108110
description: 'Domain of the url, such as "www.elastic.co".
81118111
81128112
In some cases a URL may refer to an IP and/or port directly, without a domain
8113-
name. In this case, the IP address would go to the `domain` field.'
8113+
name. In this case, the IP address would go to the `domain` field.
8114+
8115+
If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC 2732),
8116+
the `[` and `]` characters should also be captured in the `domain` field.'
81148117
example: www.elastic.co
81158118
flat_name: url.domain
81168119
ignore_above: 1024

generated/ecs/ecs_nested.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9383,7 +9383,11 @@ url:
93839383
description: 'Domain of the url, such as "www.elastic.co".
93849384
93859385
In some cases a URL may refer to an IP and/or port directly, without a domain
9386-
name. In this case, the IP address would go to the `domain` field.'
9386+
name. In this case, the IP address would go to the `domain` field.
9387+
9388+
If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC
9389+
2732), the `[` and `]` characters should also be captured in the `domain`
9390+
field.'
93879391
example: www.elastic.co
93889392
flat_name: url.domain
93899393
ignore_above: 1024

schemas/url.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
5959
In some cases a URL may refer to an IP and/or port directly, without a
6060
domain name. In this case, the IP address would go to the `domain` field.
61+
62+
If the URL contains a literal IPv6 address enclosed by `[` and `]` (IETF RFC 2732),
63+
the `[` and `]` characters should also be captured in the `domain` field.
6164
example: www.elastic.co
6265

6366
- name: registered_domain

0 commit comments

Comments
 (0)