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

Update Beat launcher to pass beater config section to New #2014

Merged
merged 4 commits into from
Jul 13, 2016

Conversation

urso
Copy link

@urso urso commented Jul 12, 2016

No description provided.

@urso urso added in progress Pull request is currently in progress. blocked labels Jul 12, 2016
@urso urso mentioned this pull request Jul 12, 2016
5 tasks
@urso urso force-pushed the enh/beat-config-section branch from a4f22d6 to a83c3b0 Compare July 12, 2016 13:58
@urso urso force-pushed the enh/beat-config-section branch from 7ad2a52 to 4b992ae Compare July 12, 2016 15:29
@urso urso added review and removed blocked in progress Pull request is currently in progress. labels Jul 12, 2016
@@ -36,7 +36,7 @@ func (bt *{{cookiecutter.beat|capitalize}}) Run(b *beat.Beat) error {
logp.Info("{{cookiecutter.beat}} is running! Hit CTRL-C to stop it.")

bt.client = b.Publisher.Connect()
ticker := time.NewTicker(bt.config.{{cookiecutter.beat|capitalize}}.Period)
ticker := time.NewTicker(bt.config.Period)
Copy link
Contributor

Choose a reason for hiding this comment

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

One less :-D

@ruflin
Copy link
Contributor

ruflin commented Jul 12, 2016

LGTM

@ruflin
Copy link
Contributor

ruflin commented Jul 12, 2016

Winlogbeat still seems to have some complaints here.

@urso
Copy link
Author

urso commented Jul 12, 2016

yeah, winlogbeat checks toplevel configs. Unfortunatelly winlogbeat tests for filters top-level section, which has been renamed to prospectors.

@ruflin
Copy link
Contributor

ruflin commented Jul 13, 2016

jenkins, retest it

@ruflin ruflin merged commit eecb37a into elastic:master Jul 13, 2016
@urso urso deleted the enh/beat-config-section branch February 19, 2019 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants