Skip to content

Commit 24ce925

Browse files
committed
Change deviceFacility to String per spec
1 parent af4d865 commit 24ce925

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/CefParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ enum DataType {
186186
entry("deviceDnsDomain", new ExtensionMapping("deviceDnsDomain", StringType, "observer.registered_domain")),
187187
entry("cat", new ExtensionMapping("deviceEventCategory", StringType, null)),
188188
entry("deviceExternalId", new ExtensionMapping("deviceExternalId", StringType, "observer.name")),
189-
entry("deviceFacility", new ExtensionMapping("deviceFacility", IntegerType, "log.syslog.facility.code")),
189+
entry("deviceFacility", new ExtensionMapping("deviceFacility", StringType, null)),
190190
entry("dvchost", new ExtensionMapping("deviceHostName", StringType, "observer.hostname")),
191191
entry("deviceInboundInterface", new ExtensionMapping("deviceInboundInterface", StringType, "observer.ingress.interface.name")),
192192
entry("dvcmac", new ExtensionMapping("deviceMacAddress", MACAddressType, "observer.mac")),

modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/CefProcessorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ public void testAllFieldsInExtension() {
823823
entry("flexString2", "flexString2"),
824824
entry("deviceCustomNumber3Label", "cn3Label"),
825825
entry("flexString1", "flexString1"),
826+
entry("deviceFacility", "16"),
826827
entry("deviceCustomString4Label", "cs4Label"),
827828
entry("flexString2Label", "flexString2Label"),
828829
entry("deviceCustomString3", "customString3"),
@@ -842,7 +843,6 @@ public void testAllFieldsInExtension() {
842843
)
843844
),
844845
entry("host", Map.of("nat", Map.of("ip", "10.0.0.3"))),
845-
entry("log", Map.of("syslog", Map.of("facility", Map.of("code", 16)))),
846846
entry(
847847
"observer",
848848
Map.ofEntries(

0 commit comments

Comments
 (0)