diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc
index 18b6f360d6d..1832a83e926 100644
--- a/CHANGELOG.next.asciidoc
+++ b/CHANGELOG.next.asciidoc
@@ -15,6 +15,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Rename beat.timezone to event.timezone. {pull}9458[9458]
- Use _doc as document type. {pull}9056[9056]{pull}9573[9573]
- Update to Golang 1.11.3. {pull}9560[9560]
+- Embedded html is not escaped anymore by default. {pull}9914[9914]
*Auditbeat*
diff --git a/auditbeat/auditbeat.reference.yml b/auditbeat/auditbeat.reference.yml
index bbc3f1ace5c..2ca02c723c0 100644
--- a/auditbeat/auditbeat.reference.yml
+++ b/auditbeat/auditbeat.reference.yml
@@ -367,7 +367,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -474,7 +474,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -611,7 +611,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -725,7 +725,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -845,7 +845,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -880,7 +880,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/filebeat/filebeat.reference.yml b/filebeat/filebeat.reference.yml
index 2a5a5d1b7e4..5574a9abd8b 100644
--- a/filebeat/filebeat.reference.yml
+++ b/filebeat/filebeat.reference.yml
@@ -1062,7 +1062,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -1169,7 +1169,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -1306,7 +1306,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -1420,7 +1420,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -1540,7 +1540,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -1575,7 +1575,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/heartbeat/heartbeat.reference.yml b/heartbeat/heartbeat.reference.yml
index 1033a04ffa1..51bb605b19c 100644
--- a/heartbeat/heartbeat.reference.yml
+++ b/heartbeat/heartbeat.reference.yml
@@ -511,7 +511,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -618,7 +618,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -755,7 +755,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -869,7 +869,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -989,7 +989,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -1024,7 +1024,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/journalbeat/journalbeat.reference.yml b/journalbeat/journalbeat.reference.yml
index d4a003f9dc9..4a1520c54de 100644
--- a/journalbeat/journalbeat.reference.yml
+++ b/journalbeat/journalbeat.reference.yml
@@ -301,7 +301,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -408,7 +408,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -545,7 +545,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -659,7 +659,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -779,7 +779,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -814,7 +814,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/libbeat/_meta/config.reference.yml b/libbeat/_meta/config.reference.yml
index cca7344d84f..259dc4a4c6b 100644
--- a/libbeat/_meta/config.reference.yml
+++ b/libbeat/_meta/config.reference.yml
@@ -255,7 +255,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -362,7 +362,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -499,7 +499,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -613,7 +613,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -733,7 +733,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -768,7 +768,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/libbeat/docs/outputconfig.asciidoc b/libbeat/docs/outputconfig.asciidoc
index af888bae290..ea90000b231 100644
--- a/libbeat/docs/outputconfig.asciidoc
+++ b/libbeat/docs/outputconfig.asciidoc
@@ -145,9 +145,9 @@ The default value is 0.
===== `escape_html`
-Configure escaping of HTML in strings. Set to `false` to disable escaping.
+Configure escaping of HTML in strings. Set to `true` to enable escaping.
-The default value is `true`.
+The default value is `false`.
===== `worker`
@@ -605,9 +605,9 @@ The default value is 3.
===== `escape_html`
-Configure escaping of HTML in strings. Set to `false` to disable escaping.
+Configure escaping of HTML in strings. Set to `true` to enable escaping.
-The default value is `true`.
+The default value is `false`.
===== `worker`
@@ -1429,7 +1429,7 @@ codec. By default the `json` codec is used.
*`json.pretty`*: If `pretty` is set to true, events will be nicely formatted. The default is false.
-*`json.escape_html`*: If `escape_html` is set to false, html symbols will not be escaped in strings. The default is true.
+*`json.escape_html`*: If `escape_html` is set to true, html symbols will be escaped in strings. The default is false.
Example configuration that uses the `json` codec with pretty printing enabled to write events to the console:
diff --git a/libbeat/outputs/codec/json/json.go b/libbeat/outputs/codec/json/json.go
index 2b3d1aed0f1..8f1a1540708 100644
--- a/libbeat/outputs/codec/json/json.go
+++ b/libbeat/outputs/codec/json/json.go
@@ -34,17 +34,18 @@ type Encoder struct {
folder *gotype.Iterator
version string
- config config
+ config Config
}
-type config struct {
+// Config is used to pass encoding parameters to New.
+type Config struct {
Pretty bool
EscapeHTML bool
}
-var defaultConfig = config{
+var defaultConfig = Config{
Pretty: false,
- EscapeHTML: true,
+ EscapeHTML: false,
}
func init() {
@@ -56,16 +57,13 @@ func init() {
}
}
- return New(config.Pretty, config.EscapeHTML, info.Version), nil
+ return New(info.Version, config), nil
})
}
// New creates a new json Encoder.
-func New(pretty, escapeHTML bool, version string) *Encoder {
- e := &Encoder{version: version, config: config{
- Pretty: pretty,
- EscapeHTML: escapeHTML,
- }}
+func New(version string, config Config) *Encoder {
+ e := &Encoder{version: version, config: config}
e.reset()
return e
}
diff --git a/libbeat/outputs/codec/json/json_test.go b/libbeat/outputs/codec/json/json_test.go
index 4788bf4be10..fb858c34e3a 100644
--- a/libbeat/outputs/codec/json/json_test.go
+++ b/libbeat/outputs/codec/json/json_test.go
@@ -26,7 +26,7 @@ import (
func TestJsonCodec(t *testing.T) {
type testCase struct {
- config config
+ config Config
in common.MapStr
expected string
}
@@ -38,7 +38,7 @@ func TestJsonCodec(t *testing.T) {
expected: `{"@timestamp":"0001-01-01T00:00:00.000Z","@metadata":{"beat":"test","type":"_doc","version":"1.2.3"},"msg":"message"}`,
},
"pretty enabled": testCase{
- config: config{Pretty: true},
+ config: Config{Pretty: true},
in: common.MapStr{"msg": "message"},
expected: `{
"@timestamp": "0001-01-01T00:00:00.000Z",
@@ -51,12 +51,12 @@ func TestJsonCodec(t *testing.T) {
}`,
},
"html escaping enabled": testCase{
- config: config{EscapeHTML: true},
+ config: Config{EscapeHTML: true},
in: common.MapStr{"msg": "world"},
expected: `{"@timestamp":"0001-01-01T00:00:00.000Z","@metadata":{"beat":"test","type":"_doc","version":"1.2.3"},"msg":"\u003chello\u003eworld\u003c/hello\u003e"}`,
},
"html escaping disabled": testCase{
- config: config{EscapeHTML: false},
+ config: Config{EscapeHTML: false},
in: common.MapStr{"msg": "world"},
expected: `{"@timestamp":"0001-01-01T00:00:00.000Z","@metadata":{"beat":"test","type":"_doc","version":"1.2.3"},"msg":"world"}`,
},
@@ -66,7 +66,7 @@ func TestJsonCodec(t *testing.T) {
cfg, fields, expected := test.config, test.in, test.expected
t.Run(name, func(t *testing.T) {
- codec := New(cfg.Pretty, cfg.EscapeHTML, "1.2.3")
+ codec := New("1.2.3", cfg)
actual, err := codec.Encode("test", &beat.Event{Fields: fields})
if err != nil {
diff --git a/libbeat/outputs/console/console.go b/libbeat/outputs/console/console.go
index 15d317c5159..66598fd6c53 100644
--- a/libbeat/outputs/console/console.go
+++ b/libbeat/outputs/console/console.go
@@ -70,7 +70,10 @@ func makeConsole(
return outputs.Fail(err)
}
} else {
- enc = json.New(config.Pretty, true, beat.Version)
+ enc = json.New(beat.Version, json.Config{
+ Pretty: config.Pretty,
+ EscapeHTML: false,
+ })
}
index := beat.Beat
diff --git a/libbeat/outputs/console/console_test.go b/libbeat/outputs/console/console_test.go
index 28f6933757e..46c655094ab 100644
--- a/libbeat/outputs/console/console_test.go
+++ b/libbeat/outputs/console/console_test.go
@@ -78,7 +78,10 @@ func TestConsoleOutput(t *testing.T) {
}{
{
"single json event (pretty=false)",
- json.New(false, true, "1.2.3"),
+ json.New("1.2.3", json.Config{
+ Pretty: false,
+ EscapeHTML: false,
+ }),
[]beat.Event{
{Fields: event("field", "value")},
},
@@ -86,7 +89,10 @@ func TestConsoleOutput(t *testing.T) {
},
{
"single json event (pretty=true)",
- json.New(true, true, "1.2.3"),
+ json.New("1.2.3", json.Config{
+ Pretty: true,
+ EscapeHTML: false,
+ }),
[]beat.Event{
{Fields: event("field", "value")},
},
diff --git a/libbeat/outputs/elasticsearch/config.go b/libbeat/outputs/elasticsearch/config.go
index c398f8196cf..e1142d0bc04 100644
--- a/libbeat/outputs/elasticsearch/config.go
+++ b/libbeat/outputs/elasticsearch/config.go
@@ -61,7 +61,7 @@ var (
Timeout: 90 * time.Second,
MaxRetries: 3,
CompressionLevel: 0,
- EscapeHTML: true,
+ EscapeHTML: false,
TLS: nil,
LoadBalance: true,
Backoff: Backoff{
diff --git a/libbeat/outputs/logstash/config.go b/libbeat/outputs/logstash/config.go
index 36e2a618716..27271f51143 100644
--- a/libbeat/outputs/logstash/config.go
+++ b/libbeat/outputs/logstash/config.go
@@ -60,7 +60,7 @@ var defaultConfig = Config{
Init: 1 * time.Second,
Max: 60 * time.Second,
},
- EscapeHTML: true,
+ EscapeHTML: false,
}
func newConfig() *Config {
diff --git a/libbeat/outputs/logstash/enc.go b/libbeat/outputs/logstash/enc.go
index 17d24d7a69c..b9fa409b6e9 100644
--- a/libbeat/outputs/logstash/enc.go
+++ b/libbeat/outputs/logstash/enc.go
@@ -23,7 +23,10 @@ import (
)
func makeLogstashEventEncoder(info beat.Info, escapeHTML bool, index string) func(interface{}) ([]byte, error) {
- enc := json.New(false, escapeHTML, info.Version)
+ enc := json.New(info.Version, json.Config{
+ Pretty: false,
+ EscapeHTML: escapeHTML,
+ })
return func(event interface{}) (d []byte, err error) {
d, err = enc.Encode(index, event.(*beat.Event))
if err != nil {
diff --git a/libbeat/publisher/pipeline/processor.go b/libbeat/publisher/pipeline/processor.go
index e2dcb7c73c0..3eab02ad90d 100644
--- a/libbeat/publisher/pipeline/processor.go
+++ b/libbeat/publisher/pipeline/processor.go
@@ -295,7 +295,10 @@ func debugPrintProcessor(info beat.Info) *processorFn {
// beat.Client is shared between multiple go-routines by accident)
var mux sync.Mutex
- encoder := json.New(true, false, info.Version)
+ encoder := json.New(info.Version, json.Config{
+ Pretty: true,
+ EscapeHTML: false,
+ })
return newProcessor("debugPrint", func(event *beat.Event) (*beat.Event, error) {
mux.Lock()
defer mux.Unlock()
diff --git a/metricbeat/mb/module/example_test.go b/metricbeat/mb/module/example_test.go
index 50bf2c9c203..e1cdd3a9887 100644
--- a/metricbeat/mb/module/example_test.go
+++ b/metricbeat/mb/module/example_test.go
@@ -153,7 +153,7 @@ func ExampleRunner() {
}
func encodeEvent(event beat.Event) (string, error) {
- output, err := json.New(false, true, "1.2.3").Encode("noindex", &event)
+ output, err := json.New("1.2.3", json.Config{}).Encode("noindex", &event)
if err != nil {
return "", nil
}
diff --git a/metricbeat/metricbeat.reference.yml b/metricbeat/metricbeat.reference.yml
index 3f3d29ce8a4..cf8991e8f4e 100644
--- a/metricbeat/metricbeat.reference.yml
+++ b/metricbeat/metricbeat.reference.yml
@@ -942,7 +942,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -1049,7 +1049,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -1186,7 +1186,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -1300,7 +1300,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -1420,7 +1420,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -1455,7 +1455,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/packetbeat/packetbeat.reference.yml b/packetbeat/packetbeat.reference.yml
index aa93d925d54..0d19fb00dbd 100644
--- a/packetbeat/packetbeat.reference.yml
+++ b/packetbeat/packetbeat.reference.yml
@@ -744,7 +744,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -851,7 +851,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -988,7 +988,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -1102,7 +1102,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -1222,7 +1222,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -1257,7 +1257,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/winlogbeat/winlogbeat.reference.yml b/winlogbeat/winlogbeat.reference.yml
index d8585af89ca..e76ed87a3e1 100644
--- a/winlogbeat/winlogbeat.reference.yml
+++ b/winlogbeat/winlogbeat.reference.yml
@@ -284,7 +284,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -391,7 +391,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -528,7 +528,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -642,7 +642,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -762,7 +762,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -797,7 +797,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/x-pack/auditbeat/auditbeat.reference.yml b/x-pack/auditbeat/auditbeat.reference.yml
index 7b7d36dc6c9..8565eaecaad 100644
--- a/x-pack/auditbeat/auditbeat.reference.yml
+++ b/x-pack/auditbeat/auditbeat.reference.yml
@@ -393,7 +393,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -500,7 +500,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -637,7 +637,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -751,7 +751,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -871,7 +871,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -906,7 +906,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/x-pack/filebeat/filebeat.reference.yml b/x-pack/filebeat/filebeat.reference.yml
index db402aa28da..98c6b63db70 100644
--- a/x-pack/filebeat/filebeat.reference.yml
+++ b/x-pack/filebeat/filebeat.reference.yml
@@ -1096,7 +1096,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -1203,7 +1203,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -1340,7 +1340,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -1454,7 +1454,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -1574,7 +1574,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -1609,7 +1609,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/x-pack/functionbeat/functionbeat.reference.yml b/x-pack/functionbeat/functionbeat.reference.yml
index 84340a232dc..73c56055120 100644
--- a/x-pack/functionbeat/functionbeat.reference.yml
+++ b/x-pack/functionbeat/functionbeat.reference.yml
@@ -349,7 +349,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -456,7 +456,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -593,7 +593,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -707,7 +707,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -827,7 +827,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -862,7 +862,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================
diff --git a/x-pack/metricbeat/metricbeat.reference.yml b/x-pack/metricbeat/metricbeat.reference.yml
index 97202c7b51e..15128e1f2ed 100644
--- a/x-pack/metricbeat/metricbeat.reference.yml
+++ b/x-pack/metricbeat/metricbeat.reference.yml
@@ -950,7 +950,7 @@ output.elasticsearch:
#compression_level: 0
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional protocol and basic auth credentials.
#protocol: "https"
@@ -1057,7 +1057,7 @@ output.elasticsearch:
#compression_level: 3
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Optional maximum time to live for a connection to Logstash, after which the
# connection will be re-established. A value of `0s` (the default) will
@@ -1194,7 +1194,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Metadata update configuration. Metadata contains leader information
# used to decide which broker to use when publishing.
@@ -1308,7 +1308,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# The list of Redis servers to connect to. If load-balancing is enabled, the
# events are distributed to the servers in the list. If one server becomes
@@ -1428,7 +1428,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
# Path to the directory where to save the generated files. The option is
# mandatory.
@@ -1463,7 +1463,7 @@ output.elasticsearch:
#pretty: false
# Configure escaping HTML symbols in strings.
- #escape_html: true
+ #escape_html: false
#================================= Paths ======================================