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

Feat: check target is set in ECS mode #49

Merged
merged 7 commits into from
Jun 17, 2021

Conversation

kares
Copy link
Contributor

@kares kares commented Jun 7, 2021

if target => option is not present in ECS mode we log a warning (at info level).

also includes some (debug) logging improvements that I managed to bump into ...

Copy link
Contributor

@yaauie yaauie left a comment

Choose a reason for hiding this comment

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

A lot of really helpful clean-up along side this one 👍🏼

I've left a comment about the place for validation. I'd prefer we not need unit tests like these for every plugin that uses the ECS compatibility support's TargetCheck, especially because it is easy to create fragile specs that fail when changes are made upstream in Logstash core or in the ECS support gem. In a way we are "infecting" this gem with unit specs describing the inner workings of components that are outside of this plugin's control or concern.

spec/filters/json_spec.rb Show resolved Hide resolved
spec/filters/json_spec.rb Outdated Show resolved Hide resolved
@kares kares requested a review from yaauie June 7, 2021 17:49
@kares kares requested review from yaauie and removed request for yaauie June 14, 2021 10:34
Copy link
Contributor

@yaauie yaauie left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants