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

enable module fields overrides from custom beats #10060

Merged
merged 6 commits into from
Jan 18, 2019

Conversation

graphaelli
Copy link
Member

follow up on #9188 where I unintentionally missed this originally - previously only libbeat fields could be overridden.

@graphaelli graphaelli requested review from a team as code owners January 14, 2019 18:14
libbeat/generator/fields/module_fields_collector.go Outdated Show resolved Hide resolved
libbeat/generator/fields/module_fields_collector.go Outdated Show resolved Hide resolved
libbeat/generator/fields/fields.go Outdated Show resolved Hide resolved
libbeat/generator/fields/fields.go Outdated Show resolved Hide resolved
libbeat/generator/fields/fields.go Outdated Show resolved Hide resolved
@ruflin
Copy link
Member

ruflin commented Jan 15, 2019

Is this expected to change the fields.go files? Shouldn't the output stay the same?

@graphaelli
Copy link
Member Author

the order of the fields changed, was: libbeat, custom, modules now: libbeat, modules, custom

Copy link
Member

@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.

LGTM. Sorry you need an other rebase.

libbeatModulesPath := filepath.Join(esBeatsPath, "libbeat/processors")
libbeatFieldFiles, err = CollectModuleFiles(libbeatModulesPath)
if err != nil {
func makeYml(indent int, paths ...string) ([]*YmlFile, error) {
Copy link
Member

Choose a reason for hiding this comment

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

+1 on extracting this.

 Conflicts:
	packetbeat/include/fields.go
@graphaelli
Copy link
Member Author

jenkins, retest this please

5 similar comments
@graphaelli
Copy link
Member Author

jenkins, retest this please

@graphaelli
Copy link
Member Author

jenkins, retest this please

@graphaelli
Copy link
Member Author

jenkins, retest this please

@graphaelli
Copy link
Member Author

jenkins, retest this please

@graphaelli
Copy link
Member Author

jenkins, retest this please

@graphaelli
Copy link
Member Author

jenkins, retest this please

 Conflicts:
	auditbeat/include/fields.go
	filebeat/include/fields.go
	heartbeat/include/fields.go
	journalbeat/include/fields.go
	metricbeat/include/fields/fields.go
	packetbeat/include/fields.go
	winlogbeat/include/fields.go
	x-pack/functionbeat/include/fields.go
@graphaelli
Copy link
Member Author

jenkins, retest this please

@ruflin
Copy link
Member

ruflin commented Jan 17, 2019

@graphaelli Taking into account our current situation with CI I'm also happy with Travis only green.

 Conflicts:
	filebeat/include/fields.go
	journalbeat/include/fields.go
@graphaelli graphaelli merged commit 52439be into elastic:master Jan 18, 2019
@graphaelli graphaelli deleted the override-module-fields branch January 18, 2019 12:25
DStape pushed a commit to DStape/beats that referenced this pull request Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants