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

Generator for a Filebeat module/fileset #3248

Merged
merged 1 commit into from
Jan 3, 2017

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Dec 26, 2016

Following the model of the Metricbeat module generator, this creates
templates for most of the required files of a fileset, making it
easier to get started.

To use, run as:

MODULE=apache FILESET=access make create-fileset

The PR includes some minor cleanups to the Metricbeat version.

Part of #3159.

Following the model of the Metricbeat module generator, this creates
templates for most of the required files of a fileset, making it
easier to get started.

To use, run as:

MODULE=apache FILESET=access make create-fileset

The PR includes some minor cleanups to the Metricbeat version.

Part of elastic#3159.
@tsg tsg added the review label Dec 26, 2016
This was referenced Dec 26, 2016
Copy link
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

Nice 🎉 We should probably think more about reusing more python code between filebeat, metricbeat and the generators in the future to simplify the code.

@@ -12,14 +12,14 @@ def generate_metricset(base_path, metricbeat_path, module, metricset):
meta_path = metricset_path + "/_meta"

if os.path.isdir(metricset_path):
print "MericSet already exists. Skipping creating metricset " + metricset + ".\n"
print("Metricset already exists. Skipping creating metricset {}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this still print a newline?

@ruflin ruflin added the Filebeat Filebeat label Jan 2, 2017
@ruflin ruflin merged commit 72823f8 into elastic:master Jan 3, 2017
@ruflin
Copy link
Contributor

ruflin commented Jan 3, 2017

Merged already. We can still do some improvements later.

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