Skip to content

Commit aa8e3bb

Browse files
authored
Update ECS version to 1.12 (#1693)
1 parent 07db7c8 commit aa8e3bb

File tree

11 files changed

+36
-45
lines changed

11 files changed

+36
-45
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
dependencies:
22
ecs:
3-
reference: git@1.11
3+
reference: git@1.12

packages/haproxy/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "0.6.0"
3+
changes:
4+
- description: Update to ECS 1.12.0
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/1693
27
- version: "0.5.3"
38
changes:
49
- description: Convert to generated ECS fields
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
- fields:
2-
- description: Process id.
3-
format: string
4-
level: core
5-
name: pid
6-
type: long
7-
group: 2
1+
- external: ecs
82
name: process
9-
title: Process
10-
type: group
11-
- description: Service address
3+
- external: ecs
4+
name: process.pid
5+
- external: ecs
126
name: service.address
13-
type: keyword
14-
- description: Service type
7+
- external: ecs
158
name: service.type
16-
type: keyword

packages/haproxy/data_stream/log/_dev/test/pipeline/test-default.log-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"@timestamp": "2021-09-20T15:42:59.000Z",
99
"ecs": {
10-
"version": "1.11.0"
10+
"version": "1.12.0"
1111
},
1212
"related": {
1313
"ip": [

packages/haproxy/data_stream/log/_dev/test/pipeline/test-haproxy.log-expected.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
],
3434
"@timestamp": "2018-07-30T09:03:52.726Z",
3535
"ecs": {
36-
"version": "1.11.0"
36+
"version": "1.12.0"
3737
},
3838
"related": {
3939
"ip": [
@@ -115,7 +115,7 @@
115115
],
116116
"@timestamp": "2021-05-22T02:22:22.222Z",
117117
"ecs": {
118-
"version": "1.11.0"
118+
"version": "1.12.0"
119119
},
120120
"haproxy": {
121121
"server_name": "node2",

packages/haproxy/data_stream/log/_dev/test/pipeline/test-httplog-no-headers.log-expected.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
],
2121
"@timestamp": "2018-12-10T12:01:46.395Z",
2222
"ecs": {
23-
"version": "1.11.0"
23+
"version": "1.12.0"
2424
},
2525
"related": {
2626
"ip": [
@@ -97,7 +97,7 @@
9797
],
9898
"@timestamp": "2018-12-10T15:46:49.497Z",
9999
"ecs": {
100-
"version": "1.11.0"
100+
"version": "1.12.0"
101101
},
102102
"related": {
103103
"ip": [
@@ -174,7 +174,7 @@
174174
],
175175
"@timestamp": "2018-12-10T15:48:56.017Z",
176176
"ecs": {
177-
"version": "1.11.0"
177+
"version": "1.12.0"
178178
},
179179
"related": {
180180
"ip": [

packages/haproxy/data_stream/log/_dev/test/pipeline/test-tcplog.log-expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"@timestamp": "2018-09-20T15:44:23.285Z",
1010
"ecs": {
11-
"version": "1.11.0"
11+
"version": "1.12.0"
1212
},
1313
"related": {
1414
"ip": [

packages/haproxy/data_stream/log/elasticsearch/ingest_pipeline/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ processors:
77
value: "{{ _ingest.timestamp }}"
88
- set:
99
field: ecs.version
10-
value: '1.11.0'
10+
value: '1.12.0'
1111
- rename:
1212
field: message
1313
target_field: event.original
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
- fields:
2-
- description: Process id.
3-
format: string
4-
level: core
5-
name: pid
6-
type: long
7-
group: 2
1+
- external: ecs
82
name: process
9-
title: Process
10-
type: group
11-
- description: Service address
3+
- external: ecs
4+
name: process.pid
5+
- external: ecs
126
name: service.address
13-
type: keyword
14-
- description: Service type
7+
- external: ecs
158
name: service.type
16-
type: keyword

packages/haproxy/docs/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ The `log` dataset collects the HAProxy application logs.
8686
| host.os.version | Operating system version as a raw string. | keyword |
8787
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword |
8888
| http.request.body.bytes | Size in bytes of the request body. | long |
89-
| http.request.body.content | The full HTTP request body. | keyword |
89+
| http.request.body.content | The full HTTP request body. | wildcard |
9090
| http.request.bytes | Total size in bytes of the request (body and headers). | long |
9191
| http.request.method | HTTP request method. Prior to ECS 1.6.0 the following guidance was provided: "The field value must be normalized to lowercase for querying." As of ECS 1.6.0, the guidance is deprecated because the original case of the method may be useful in anomaly detection. Original case will be mandated in ECS 2.0.0 | keyword |
9292
| http.request.referrer | Referrer for this HTTP request. | keyword |
9393
| http.response.body.bytes | Size in bytes of the response body. | long |
94-
| http.response.body.content | The full HTTP response body. | keyword |
94+
| http.response.body.content | The full HTTP response body. | wildcard |
9595
| http.response.bytes | Total size in bytes of the response (body and headers). | long |
9696
| http.response.status_code | HTTP response status code. | long |
9797
| http.version | HTTP version. | keyword |
@@ -115,10 +115,10 @@ The `log` dataset collects the HAProxy application logs.
115115
| url.domain | Domain of the url, such as "www.elastic.co". 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. 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. | keyword |
116116
| url.extension | The field contains the file extension from the original request url, excluding the leading dot. The file extension is only set if it exists, as not every url has a file extension. The leading period must not be included. For example, the value must be "png", not ".png". Note that when the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz"). | keyword |
117117
| url.fragment | Portion of the url after the `#`, such as "top". The `#` is not part of the fragment. | keyword |
118-
| url.full | If full URLs are important to your use case, they should be stored in `url.full`, whether this field is reconstructed or present in the event source. | keyword |
119-
| url.original | Unmodified original url as seen in the event source. Note that in network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. | keyword |
118+
| url.full | If full URLs are important to your use case, they should be stored in `url.full`, whether this field is reconstructed or present in the event source. | wildcard |
119+
| url.original | Unmodified original url as seen in the event source. Note that in network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. | wildcard |
120120
| url.password | Password of the request. | keyword |
121-
| url.path | Path of the request, such as "/search". | keyword |
121+
| url.path | Path of the request, such as "/search". | wildcard |
122122
| url.port | Port of the request, such as 443. | long |
123123
| url.query | The query field describes the query string of the request, such as "q=elasticsearch". The `?` is excluded from the query string. If a URL contains no `?`, there is no query field. If there is a `?` but no query, the query field exists with an empty string. The `exists` query can be used to differentiate between the two cases. | keyword |
124124
| url.registered_domain | The highest registered url domain, stripped of the subdomain. For example, the registered domain for "foo.example.com" is "example.com". This value can be determined precisely with a list like the public suffix list (http://publicsuffix.org). Trying to approximate this by simply taking the last two labels will not work well for TLDs such as "co.uk". | keyword |
@@ -348,9 +348,10 @@ The fields reported are:
348348
| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword |
349349
| host.os.version | Operating system version as a raw string. | keyword |
350350
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword |
351+
| process | These fields contain information about a process. These fields can help you correlate metrics information with a process id/name from a log message. The `process.pid` often stays in the metric itself and is copied to the global field for correlation. | group |
351352
| process.pid | Process id. | long |
352-
| service.address | Service address | keyword |
353-
| service.type | Service type | keyword |
353+
| service.address | Address where data about this service was collected from. This should be a URI, network address (ipv4:port or [ipv6]:port) or a resource path (sockets). | keyword |
354+
| service.type | The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, `service.type` would be `elasticsearch`. | keyword |
354355

355356

356357
### stat
@@ -575,7 +576,8 @@ The fields reported are:
575576
| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword |
576577
| host.os.version | Operating system version as a raw string. | keyword |
577578
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword |
579+
| process | These fields contain information about a process. These fields can help you correlate metrics information with a process id/name from a log message. The `process.pid` often stays in the metric itself and is copied to the global field for correlation. | group |
578580
| process.pid | Process id. | long |
579-
| service.address | Service address | keyword |
580-
| service.type | Service type | keyword |
581+
| service.address | Address where data about this service was collected from. This should be a URI, network address (ipv4:port or [ipv6]:port) or a resource path (sockets). | keyword |
582+
| service.type | The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, `service.type` would be `elasticsearch`. | keyword |
581583

0 commit comments

Comments
 (0)