-
Notifications
You must be signed in to change notification settings - Fork 12
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: added target => namespace support + ECS compatibility #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
left just a couple of nitpicks, that you can skip
@@ -1,5 +1,9 @@ | |||
## 1.1.0 | |||
- Feat: added target => namespace support + ECS compatibility [#7](https://github.com/logstash-plugins/logstash-codec-csv/pull/7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Feat: added target => namespace support + ECS compatibility [#7](https://github.com/logstash-plugins/logstash-codec-csv/pull/7) | |
- Added `target` configuration option to namespace the read CSV field and added ECS compatibility [#7](https://github.com/logstash-plugins/logstash-codec-csv/pull/7) |
|
||
it "extract all the values" do | ||
it "return an event from CSV data" do | ||
event_count = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
event_count
is used as an execution guard, sop maybe a boolean could expose better the intention to verify the codec execution.
event_decoded = false
codec.decode(data) do |event|
event_decoded = true
...
end
expect( event_decoded ).to be true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds cleanly and LGTM
We're introducing a
target => ...
configuration option for the codec, to aid ECS support.When
target
isn't set in ECS mode, we do the usual info log message.