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

Stop filebeat on error starting registrar #2868

Merged
merged 1 commit into from
Oct 27, 2016
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
3 changes: 2 additions & 1 deletion CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Template, add newest changes here

=== Beats version HEAD
https://github.com/elastic/beats/compare/v5.0.0-rc1...5.0[Check the HEAD diff]
https://github.com/elastic/beats/compare/v5.0.0...5.0[Check the HEAD diff]

==== Breaking changes

Expand Down Expand Up @@ -51,6 +51,7 @@ https://github.com/elastic/beats/compare/v5.0.0-rc1...5.0[Check the HEAD diff]
*Topbeat*

*Filebeat*
- Stop Filebeat on registrar loading error.

*Winlogbeat*

Expand Down
1 change: 1 addition & 0 deletions filebeat/beater/filebeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (fb *Filebeat) Run(b *beat.Beat) error {
err = registrar.Start()
if err != nil {
logp.Err("Could not start registrar: %v", err)
return err
}
// Stopping registrar will write last state
defer registrar.Stop()
Expand Down