Skip to content

Conversation

kares
Copy link
Contributor

@kares kares commented Nov 16, 2021

Previously plugin was setting the top level command and host fields for every event (which aren't ECS compliant).

There's a change in behavior to not override fields if they exists in the decoded payload (e.g. no longer force the host field if such a field is decoded from the command's output).

Also avoid an unnecessary undefined method close' for nil` when a different thread stops the plugin.
Plugin changes are similar to it's input exec cousin: logstash-plugins/logstash-input-exec#28

@kares kares marked this pull request as ready for review November 16, 2021 10:11
@kares kares linked an issue Nov 16, 2021 that may be closed by this pull request
@kares kares requested review from karenzone and yaauie November 16, 2021 10:13
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 🎉

Copy link
Contributor

@karenzone karenzone left a comment

Choose a reason for hiding this comment

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

Minor wording suggestion inline. LGTM pending version bump (required for docs changes to get picked up).

"command" => "echo '¡Hola!'",
"host" => "deus-ex-machina"
}
-----
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding these examples. Nice!

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
@kares kares merged commit 4dc7b3d into logstash-plugins:main Nov 18, 2021
kares added a commit to kares/logstash-input-pipe that referenced this pull request Nov 18, 2021
kares added a commit that referenced this pull request Nov 18, 2021
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.

adapt plugin for ECS compatibility
3 participants