Skip to content
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

Cherry-pick #5096 to 6.0: Lower number of shards in the default configuraitions #5125

Merged
merged 3 commits into from
Sep 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,26 @@ https://github.com/elastic/beats/compare/v6.0.0-beta2...master[Check the HEAD di

*Auditbeat*

- Changed the number of shards in the default configuration to 3. {issue}5095[5095]

*Filebeat*

- Changed the number of shards in the default configuration to 3. {issue}5095[5095]
- Don't start filebeat if external modules/prospectors config is wrong and reload is disabled {pull}5053[5053]

*Heartbeat*

- Changed the number of shards in the default configuration to 1. {issue}5095[5095]

*Metricbeat*

*Packetbeat*

- Changed the number of shards in the default configuration to 3. {issue}5095[5095]

*Winlogbeat*

*Auditbeat*
- Changed the number of shards in the default configuration to 3. {issue}5095[5095]

==== Deprecated

Expand Down
5 changes: 3 additions & 2 deletions auditbeat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ fields: python-env
# Collects all module configs
.PHONY: configs
configs: python-env
@cat ${ES_BEATS}/auditbeat/_meta/common.yml \
<(go run scripts/generate_config.go -os linux -concat) > _meta/beat.yml
@cat ${ES_BEATS}/auditbeat/_meta/common.p1.yml \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to also contain the other packaging fix 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't, but I opened a backport PR for that one as well: #5127

<(go run scripts/generate_config.go -os linux -concat) \
${ES_BEATS}/auditbeat/_meta/common.p2.yml > _meta/beat.yml
@cat ${ES_BEATS}/auditbeat/_meta/common.reference.yml \
<(go run scripts/generate_config.go -os linux -ref -concat) > _meta/beat.reference.yml

Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions auditbeat/_meta/common.p2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false
6 changes: 6 additions & 0 deletions auditbeat/auditbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ auditbeat.modules:



#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false

#================================ General =====================================

# The name of the shipper that publishes the network data. It can be used to group
Expand Down
7 changes: 7 additions & 0 deletions filebeat/_meta/common.p2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@ filebeat.config.modules:

# Period on which files under path should be checked for changes
#reload.period: 10s

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false
7 changes: 7 additions & 0 deletions filebeat/filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ filebeat.config.modules:
# Period on which files under path should be checked for changes
#reload.period: 10s

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false

#================================ General =====================================

# The name of the shipper that publishes the network data. It can be used to group
Expand Down
7 changes: 7 additions & 0 deletions heartbeat/_meta/beat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ heartbeat.monitors:

# Total test connection and data exchange timeout
#timeout: 16s

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
#_source.enabled: false
7 changes: 7 additions & 0 deletions heartbeat/heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ heartbeat.monitors:
# Total test connection and data exchange timeout
#timeout: 16s

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
#_source.enabled: false

#================================ General =====================================

# The name of the shipper that publishes the network data. It can be used to group
Expand Down
2 changes: 2 additions & 0 deletions metricbeat/_meta/setup.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

#========================== Modules configuration ============================

metricbeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
Expand All @@ -11,6 +12,7 @@ metricbeat.config.modules:
#reload.period: 10s

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
Expand Down
2 changes: 2 additions & 0 deletions metricbeat/metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# https://www.elastic.co/guide/en/beats/metricbeat/index.html

#========================== Modules configuration ============================

metricbeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
Expand All @@ -19,6 +20,7 @@ metricbeat.config.modules:
#reload.period: 10s

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
Expand Down
7 changes: 7 additions & 0 deletions packetbeat/_meta/beat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,10 @@ packetbeat.protocols:
# Configure the ports where to listen for NFS traffic. You can disable
# the NFS protocol by commenting out the list of ports.
ports: [2049]

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false
7 changes: 7 additions & 0 deletions packetbeat/packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ packetbeat.protocols:
# the NFS protocol by commenting out the list of ports.
ports: [2049]

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false

#================================ General =====================================

# The name of the shipper that publishes the network data. It can be used to group
Expand Down
7 changes: 7 additions & 0 deletions winlogbeat/_meta/beat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ winlogbeat.event_logs:
ignore_older: 72h
- name: Security
- name: System

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false
7 changes: 7 additions & 0 deletions winlogbeat/winlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ winlogbeat.event_logs:
- name: Security
- name: System

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false

#================================ General =====================================

# The name of the shipper that publishes the network data. It can be used to group
Expand Down