Skip to content

Commit 46ebeb6

Browse files
committed
Minor update on beat specs.
Adapted scripts to work with ES 2.2.
1 parent 67ca983 commit 46ebeb6

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

cf-java-logging-support-core/beats/app-logs/docs/fields.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ type: string
232232
required: True
233233

234234
To make the message self-contained this is the type tag.
235-
As we're talking about log messages, it's always "app-logs".
235+
As we're talking about log messages, it's always "logs".
236236

237237

238238
[[exported-fields-app-logs]]

cf-java-logging-support-core/beats/app-logs/etc/app-logs.template.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"mappings": {
33
"_default_": {
44
"_all": {
5-
"enabled": false
5+
"enabled": true,
6+
"omit_norms": true
67
},
78
"dynamic_templates": [
89
{

cf-java-logging-support-core/beats/app-logs/etc/fields.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ ctx:
176176
required: true
177177
description: |
178178
To make the message self-contained this is the type tag.
179-
As we're talking about log messages, it's always "app-logs".
179+
As we're talking about log messages, it's always "logs".
180180
181181
app-logs:
182182
type: group

cf-java-logging-support-core/beats/request-metrics/docs/fields.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ type: string
255255
required: True
256256

257257
To make the message self-contained this is the type tag.
258-
As we're talking about request metrics messages, it's always "request-metrics".
258+
As we're talking about request metrics messages, it's always "request".
259259

260260

261261
[[exported-fields-request-metrics]]

cf-java-logging-support-core/beats/request-metrics/etc/fields.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ ctx:
194194
required: true
195195
description: |
196196
To make the message self-contained this is the type tag.
197-
As we're talking about request metrics messages, it's always "request-metrics".
197+
As we're talking about request metrics messages, it's always "request".
198198
199199
request-metrics:
200200
type: group

cf-java-logging-support-core/beats/request-metrics/etc/request-metrics.template.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"mappings": {
33
"_default_": {
44
"_all": {
5-
"enabled": false
5+
"enabled": true,
6+
"omit_norms": true
67
},
78
"dynamic_templates": [
89
{

cf-java-logging-support-core/beats/scripts/generate_template.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def fields_to_es_template(input, output, index):
4949
"mappings": {
5050
"_default_": {
5151
"_all": {
52-
"enabled": False
52+
"omit_norms": True,
53+
"enabled": True
5354
},
5455
"properties": {},
5556
"dynamic_templates": [{
@@ -78,7 +79,7 @@ def fields_to_es_template(input, output, index):
7879
template["mappings"]["_default_"]["properties"] = properties
7980
#
8081
# Add these two "defaults"
81-
# THIS IS SUPER IMPORTANT FOR US, OTHERWISE ES MAY CHOKE
82+
# THIS IS SUPER IMPORTANT FOR US, OTHERWISE ES MAY CHOKE
8283
#
8384
template["mappings"]["_default_"]["properties"]["@message"] = {
8485
"type": "string",

0 commit comments

Comments
 (0)