Skip to content

Commit 8b37b7e

Browse files
committed
Add more disallowed characters, require lower case
1 parent 9364777 commit 8b37b7e

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

spec/spec.json

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@
7373
"required": false,
7474
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-event.html",
7575
"default": "${service.name}.log OR ${service.name}.${appender.name}",
76+
"sanitization": {
77+
"value": {
78+
"replacements": ["\\", "/", "*", "?", "\"", "<", ">", "|", " ", ",", "#", ":", "-"],
79+
"substitute": "_",
80+
"max_chars": 100,
81+
"lower_case": true
82+
}
83+
},
7684
"comment": [
7785
"Configurable by users.",
7886
"If the user manually configures the service name,",
@@ -84,29 +92,28 @@
8492
"",
8593
"The field helps to filter for different log streams from the same pod, for example and is required for log anomaly detection.",
8694
"",
87-
"Should have the same value as `data_stream.dataset`.",
88-
"",
89-
"In 8.0, `event.dataset` will be removed in favor of `data_stream.dataset`."
95+
"Must be in sync with `data_stream.dataset`."
9096
]
9197
},
9298
"data_stream.dataset": {
9399
"type": "string",
94100
"required": false,
95-
"url": "https://github.com/elastic/ecs/pull/1145",
101+
"url": "https://github.com/elastic/ecs/blob/master/rfcs/text/0009-data_stream-fields.md",
96102
"default": "${service.name}.log OR ${service.name}.${appender.name}",
97103
"sanitization": {
98104
"value": {
99-
"replacements": ["\\", "/", "*", "?", "\"", "<", ">", "|", " ", "-"],
105+
"replacements": ["\\", "/", "*", "?", "\"", "<", ">", "|", " ", ",", "#", ":", "-"],
100106
"substitute": "_",
101-
"max_chars": 100
107+
"max_chars": 100,
108+
"lower_case": true
102109
}
103110
},
104111
"comment": [
105112
"Configurable by users.",
106113
"Influences which data stream the logs will be stored in (`logs-{data_stream.dataset}-{data_stream.namespace}`)",
107114
"If unspecified, Filebeat will set the value to `generic`.",
108115
"",
109-
"Should have the same value as `event.dataset`."
116+
"Must be in sync with `event.dataset`."
110117
]
111118
},
112119
"data_stream.namespace": {
@@ -116,17 +123,18 @@
116123
"default": null,
117124
"sanitization": {
118125
"value": {
119-
"replacements": ["\\", "/", "*", "?", "\"", "<", ">", "|", " "],
126+
"replacements": ["\\", "/", "*", "?", "\"", "<", ">", "|", " ", ",", "#", ":"],
120127
"substitute": "_",
121-
"max_chars": 100
128+
"max_chars": 100,
129+
"lower_case": true
122130
}
123131
},
124132
"comment": [
125133
"Configurable by users.",
126134
"Influences which data stream the logs will be stored in (`logs-{data_stream.dataset}-{data_stream.namespace}`)",
127135
"If unspecified, Filebeat will set the value to `default`.",
128136
"",
129-
"Should have the same value as `event.dataset`."
137+
"Must be in sync with `data_stream.dataset`."
130138
]
131139
},
132140
"process.thread.name": {

0 commit comments

Comments
 (0)