Skip to content

Commit e1f6ded

Browse files
committed
Fix null termination advice for SOA and JTL
1 parent 052f04f commit e1f6ded

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

src/site/antora/modules/ROOT/examples/cloud/logstash/log4j2.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"name": "SOCKET",
77
"host": "localhost",
88
"port": 12345,
9-
"JsonTemplateLayout": {
10-
"nullEventDelimiterEnabled": true
11-
}
9+
"JsonTemplateLayout": {}
1210
}
1311
// end::socketAppender[]
1412
},

src/site/antora/modules/ROOT/examples/cloud/logstash/log4j2.properties

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ appender.0.name = SOCKET
2121
appender.0.host = localhost
2222
appender.0.port = 12345
2323
appender.0.layout.type = JsonTemplateLayout
24-
appender.0.layout.nullEventDelimiterEnabled = true
2524
# end::socketAppender[]
2625

2726
rootLogger.level = WARN

src/site/antora/modules/ROOT/examples/cloud/logstash/log4j2.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<Appenders>
2525
<!-- tag::socketAppender[] -->
2626
<Socket name="SOCKET" host="localhost" port="12345">
27-
<JsonTemplateLayout nullEventDelimiterEnabled="true"/>
27+
<JsonTemplateLayout/>
2828
</Socket>
2929
<!-- end::socketAppender[] -->
3030
</Appenders>

src/site/antora/modules/ROOT/examples/cloud/logstash/log4j2.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ Configuration:
2222
name: "SOCKET"
2323
host: "localhost"
2424
port: 12345
25-
JsonTemplateLayout:
26-
nullEventDelimiterEnabled: true
25+
JsonTemplateLayout: {}
2726
# end::socketAppender[]
2827

2928
Loggers:

src/site/antora/modules/ROOT/pages/soa.adoc

+1-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ Nevertheless, there are some tips we recommend you to practice:
9999
100100
* *For writing to console*, use a xref:manual/appenders.adoc#ConsoleAppender[Console Appender] and make sure to configure its `direct` attribute to `true` for the maximum efficiency.
101101
102-
* *For writing to an external service*, use a xref:manual/appenders/network.adoc#SocketAppender[Socket Appender] and make sure to set the protocol to TCP and configure the null delimiter of the associated layout.
103-
For instance, see xref:manual/json-template-layout.adoc#plugin-attr-nullEventDelimiterEnabled[the `nullEventDelimiterEnabled` configuration attribute of JSON Template Layout].
102+
* *For writing to an external service*, use a xref:manual/appenders/network.adoc#SocketAppender[Socket Appender] and make sure to configure the protocol and layout's null termination (e.g., see xref:manual/json-template-layout.adoc#plugin-attr-nullEventDelimiterEnabled[the `nullEventDelimiterEnabled` configuration attribute of JSON Template Layout]) appropriately.
104103
105104
[#file]
106105
=== Avoid writing to files

0 commit comments

Comments
 (0)