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

Document Beater Interface / Minor behavioral changes #1249

Merged
merged 1 commit into from
Mar 29, 2016

Conversation

andrewkroh
Copy link
Member

Add godocs describing how the Beater interface is used.
Read YAML configuration file one time (instead of twice)
Remove os.Exit calls from Packetbeat
Print Config OK to stdout on succesful -configtest.
Changed HandleFlags() to return an error
Guarantee that Beater.Run() and Beater.Cleanup() are called before the process exits.

@andrewkroh andrewkroh added the discuss Issue needs further discussion. label Mar 29, 2016
@tsg
Copy link
Contributor

tsg commented Mar 29, 2016

Maybe add a CHANGELOG update for the -configtest change.

@tsg
Copy link
Contributor

tsg commented Mar 29, 2016

LGTM.

Add godocs describing how the Beater interface is used.
Read YAML configuration file one time (instead of twice)
Remove os.Exit calls from Packetbeat
Print Config OK to stdout on succesful -configtest.
Changed HandleFlags() to return an error

Fixes elastic#1234
@andrewkroh
Copy link
Member Author

@tsg I updated the CHANGELOG file.

@tsg tsg merged commit a029710 into elastic:master Mar 29, 2016
@andrewkroh andrewkroh deleted the feature/beater branch March 30, 2016 18:04
@ruflin
Copy link
Member

ruflin commented Apr 1, 2016

@andrewkroh This probably also has to be applied to beat-generator?

@andrewkroh
Copy link
Member Author

@ruflin It should be backward compatible. But yes, there are a few things in the generator that can now be updated, like using RawConfig.Unpack().

@ruflin
Copy link
Member

ruflin commented Apr 1, 2016

@andrewkroh Yeah. I think it is important that beat-generator is "identical" to the structure we use in our beats.

andrewkroh added a commit to andrewkroh/beats that referenced this pull request Apr 19, 2016
ruflin pushed a commit that referenced this pull request Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Issue needs further discussion. enhancement review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants