-
Notifications
You must be signed in to change notification settings - Fork 23
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
avoiding overwriting of tags with key named as 'tags' #10
base: main
Are you sure you want to change the base?
Conversation
I have signed the CLA and i'm the member of elasticsearch. I have created the pull request for avoiding overwriting of tags with key named as 'tags' #10 . Kindly review the fix. |
hey @hselvara I'm not sure what happened during the creation of the PR, but your commit creates a new file instead of modifying |
2fd8df8
to
f98ae45
Compare
Hi @jsvd i have updated the PR. Please review. |
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.
few code style changes. also, can you add a test that shows what this feature allows? thank you
lib/logstash/codecs/fluent.rb
Outdated
@@ -40,7 +40,8 @@ def decode(data, &block) | |||
end # def decode | |||
|
|||
def encode(event) | |||
tag = event.get("tags") || "log" | |||
tag = event.get("tags") || "log" |
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.
please remove this indentation changes, this will make the PR less noisy and more concise.
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.
Yeah i completed that. Thanks for notifying
lib/logstash/codecs/fluent.rb
Outdated
@@ -70,31 +71,34 @@ def decode_event(data, &block) | |||
entries_decoder.feed_each(entries) do |entry| | |||
epochtime = entry[0] | |||
map = entry[1] | |||
event = LogStash::Event.new(map.merge( | |||
arr= [] |
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.
please try to follow the core conventions present in this file. when assigning to a variable, we use spaces before and after the equals sign, so arr = []
instead of arr= []
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.
I mad the changes. Thanks for Notifying
Hi Jsvd, I have updated your comments. Please review |
@hselvara can you rebase, please? the PR now rewrites about 16 files for no apparent reason |
Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/