Skip to content

Commit

Permalink
Do not activate memcache by default (#4335) (#4389)
Browse files Browse the repository at this point in the history
The documentation states that the memcache proto can be disabled
by commenting out the list of ports. In practice one had to comment
out the entire line.

Fix it by not initializing the Ports variable inside the
defaultConfig of the memcache proto. No other proto has Ports
initialized in the defaultConfig.
  • Loading branch information
zecke authored and tsg committed May 26, 2017
1 parent 5aa60d7 commit 3a58887
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ https://github.com/elastic/beats/compare/v6.0.0-alpha1...master[Check the HEAD d
- Remove unnecessary print statement in schema apis {pull}4355[4355]

*Packetbeat*
- Enable memcache filtering only if a port is specified in the config file. {issue}4335[4335]

*Winlogbeat*

Expand Down
1 change: 0 additions & 1 deletion packetbeat/protos/memcache/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type memcacheConfig struct {
var (
defaultConfig = memcacheConfig{
ProtocolCommon: config.ProtocolCommon{
Ports: []int{11211},
TransactionTimeout: protos.DefaultTransactionExpiration,
},
UDPTransactionTimeout: protos.DefaultTransactionExpiration,
Expand Down

0 comments on commit 3a58887

Please sign in to comment.