@@ -125,14 +125,14 @@ public void testDeprecatedMessageWithoutXOpaqueId() throws IOException {
125125 jsonLogs ,
126126 contains (
127127 allOf (
128- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
128+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
129129 hasEntry ("log.level" , "CRITICAL" ),
130130 hasEntry ("log.logger" , "org.elasticsearch.deprecation.test" ),
131131 hasEntry ("elasticsearch.cluster.name" , "elasticsearch" ),
132132 hasEntry ("elasticsearch.node.name" , "sample-name" ),
133133 hasEntry ("message" , "deprecated message1" ),
134134 hasEntry ("data_stream.type" , "logs" ),
135- hasEntry ("data_stream.dataset" , "deprecation. elasticsearch" ),
135+ hasEntry ("data_stream.dataset" , "elasticsearch.deprecation " ),
136136 hasEntry ("data_stream.namespace" , "default" ),
137137 hasKey ("ecs.version" ),
138138 hasEntry (DeprecatedMessage .KEY_FIELD_NAME , "a key" ),
@@ -168,8 +168,8 @@ public void testCompatibleLog() throws Exception {
168168 contains (
169169 allOf (
170170 hasEntry ("log.level" , "CRITICAL" ),
171- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
172- hasEntry ("data_stream.dataset" , "deprecation. elasticsearch" ),
171+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
172+ hasEntry ("data_stream.dataset" , "elasticsearch.deprecation " ),
173173 hasEntry ("data_stream.namespace" , "default" ),
174174 hasEntry ("data_stream.type" , "logs" ),
175175 hasEntry ("log.logger" , "org.elasticsearch.deprecation.test" ),
@@ -186,8 +186,8 @@ public void testCompatibleLog() throws Exception {
186186 allOf (
187187 hasEntry ("log.level" , "CRITICAL" ),
188188 // event.dataset and data_stream.dataset have to be the same across the data stream
189- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
190- hasEntry ("data_stream.dataset" , "deprecation. elasticsearch" ),
189+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
190+ hasEntry ("data_stream.dataset" , "elasticsearch.deprecation " ),
191191 hasEntry ("data_stream.namespace" , "default" ),
192192 hasEntry ("data_stream.type" , "logs" ),
193193 hasEntry ("log.logger" , "org.elasticsearch.deprecation.test" ),
@@ -240,8 +240,8 @@ public void testParseFieldEmittingDeprecatedLogs() throws Exception {
240240 // deprecation log for field deprecated_name
241241 allOf (
242242 hasEntry ("log.level" , "WARN" ),
243- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
244- hasEntry ("data_stream.dataset" , "deprecation. elasticsearch" ),
243+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
244+ hasEntry ("data_stream.dataset" , "elasticsearch.deprecation " ),
245245 hasEntry ("data_stream.namespace" , "default" ),
246246 hasEntry ("data_stream.type" , "logs" ),
247247 hasEntry ("log.logger" , "org.elasticsearch.deprecation.xcontent.ParseField" ),
@@ -258,8 +258,8 @@ public void testParseFieldEmittingDeprecatedLogs() throws Exception {
258258 // deprecation log for field deprecated_name2 (note it is not being throttled)
259259 allOf (
260260 hasEntry ("log.level" , "WARN" ),
261- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
262- hasEntry ("data_stream.dataset" , "deprecation. elasticsearch" ),
261+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
262+ hasEntry ("data_stream.dataset" , "elasticsearch.deprecation " ),
263263 hasEntry ("data_stream.namespace" , "default" ),
264264 hasEntry ("data_stream.type" , "logs" ),
265265 hasEntry ("log.logger" , "org.elasticsearch.deprecation.xcontent.ParseField" ),
@@ -276,8 +276,8 @@ public void testParseFieldEmittingDeprecatedLogs() throws Exception {
276276 // compatible log line
277277 allOf (
278278 hasEntry ("log.level" , "CRITICAL" ),
279- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
280- hasEntry ("data_stream.dataset" , "deprecation. elasticsearch" ),
279+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
280+ hasEntry ("data_stream.dataset" , "elasticsearch.deprecation " ),
281281 hasEntry ("data_stream.namespace" , "default" ),
282282 hasEntry ("data_stream.type" , "logs" ),
283283 hasEntry ("log.logger" , "org.elasticsearch.deprecation.xcontent.ParseField" ),
@@ -327,14 +327,14 @@ public void testDeprecatedMessage() throws Exception {
327327 jsonLogs ,
328328 contains (
329329 allOf (
330- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
330+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
331331 hasEntry ("log.level" , "WARN" ),
332332 hasEntry ("log.logger" , "org.elasticsearch.deprecation.test" ),
333333 hasEntry ("elasticsearch.cluster.name" , "elasticsearch" ),
334334 hasEntry ("elasticsearch.node.name" , "sample-name" ),
335335 hasEntry ("message" , "deprecated message1" ),
336336 hasEntry ("data_stream.type" , "logs" ),
337- hasEntry ("data_stream.dataset" , "deprecation. elasticsearch" ),
337+ hasEntry ("data_stream.dataset" , "elasticsearch.deprecation " ),
338338 hasEntry ("data_stream.namespace" , "default" ),
339339 hasKey ("ecs.version" ),
340340 hasEntry (DeprecatedMessage .KEY_FIELD_NAME , "someKey" ),
@@ -579,7 +579,7 @@ public void testDuplicateLogMessages() throws Exception {
579579 jsonLogs ,
580580 contains (
581581 allOf (
582- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
582+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
583583 hasEntry ("log.level" , "CRITICAL" ),
584584 hasEntry ("log.logger" , "org.elasticsearch.deprecation.test" ),
585585 hasEntry ("elasticsearch.cluster.name" , "elasticsearch" ),
@@ -612,7 +612,7 @@ public void testDuplicateLogMessages() throws Exception {
612612 jsonLogs ,
613613 contains (
614614 allOf (
615- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
615+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
616616 hasEntry ("log.level" , "CRITICAL" ),
617617 hasEntry ("log.logger" , "org.elasticsearch.deprecation.test" ),
618618 hasEntry ("elasticsearch.cluster.name" , "elasticsearch" ),
@@ -622,7 +622,7 @@ public void testDuplicateLogMessages() throws Exception {
622622 hasEntry ("elasticsearch.event.category" , "other" )
623623 ),
624624 allOf (
625- hasEntry ("event.dataset" , "deprecation. elasticsearch" ),
625+ hasEntry ("event.dataset" , "elasticsearch.deprecation " ),
626626 hasEntry ("log.level" , "CRITICAL" ),
627627 hasEntry ("log.logger" , "org.elasticsearch.deprecation.test" ),
628628 hasEntry ("elasticsearch.cluster.name" , "elasticsearch" ),
0 commit comments