-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto creation of template #639
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,6 +151,9 @@ filebeat: | |
# Event count spool threshold - forces network flush if exceeded | ||
#spool_size: 2048 | ||
|
||
# Enable async publisher pipeline in filebeat (Experimental!) | ||
#publish_async: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this option here by mistake? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was automatically generated, so I think it went missing in one of the previous updates. |
||
|
||
# Defines how often the spooler is flushed. After idle_timeout the spooler is | ||
# Flush even though spool_size is not reached. | ||
#idle_timeout: 5s | ||
|
@@ -196,6 +199,20 @@ output: | |
# [filebeat-]YYYY.MM.DD keys. | ||
#index: "filebeat" | ||
|
||
# A template is used to set the mapping in elasticsearch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Capitalize Elasticsearch There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
# By default template loading is disabled an not template is loaded. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you mean to say "and no template is loaded." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
# These settings can be adjusted to load your own template or overwrite existing ones | ||
#template: | ||
|
||
# Template name. By default the template name is the same as the filebeat | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you say simply, "By default the template name is Filebeat." Or you might say, "By default the template name is the same as the Beat name." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
#name: "filebeat" | ||
|
||
# Path to template file | ||
#path: "filebeat.template.json" | ||
|
||
# Overwrite existing template | ||
#overwrite: false | ||
|
||
# Optional HTTP Path | ||
#path: "/elasticsearch" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,20 @@ output: | |
# [beatname-]YYYY.MM.DD keys. | ||
#index: "beatname" | ||
|
||
# A template is used to set the mapping in elasticsearch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my comments about Filebeat. I won't repeat my comments for each Beat since these options come from libbeat. |
||
# By default template loading is disabled an not template is loaded. | ||
# These settings can be adjusted to load your own template or overwrite existing ones | ||
#template: | ||
|
||
# Template name. By default the template name is the same as the beatname | ||
#name: "beatname" | ||
|
||
# Path to template file | ||
#path: "beatname.template.json" | ||
|
||
# Overwrite existing template | ||
#overwrite: false | ||
|
||
# Optional HTTP Path | ||
#path: "/elasticsearch" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"mappings": { | ||
"_default_": { | ||
"_all": { | ||
"enabled": true, | ||
"norms": { | ||
"enabled": false | ||
} | ||
}, | ||
"dynamic_templates": [ | ||
{ | ||
"template1": { | ||
"mapping": { | ||
"doc_values": true, | ||
"ignore_above": 1024, | ||
"index": "not_analyzed", | ||
"type": "{dynamic_type}" | ||
}, | ||
"match": "*" | ||
} | ||
} | ||
], | ||
"properties": { | ||
"@timestamp": { | ||
"type": "date" | ||
}, | ||
"message": { | ||
"type": "string", | ||
"index": "analyzed" | ||
}, | ||
"offset": { | ||
"type": "long", | ||
"doc_values": "true" | ||
} | ||
} | ||
} | ||
}, | ||
"settings": { | ||
"index.refresh_interval": "5s" | ||
}, | ||
"template": "mockbeat-*" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest changing to: Add ability to create Elasticsearch mapping on startup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed