Skip to content

Tweak for compatible layer - #2

Open
cosmo0920 wants to merge 4 commits into
shivaken:masterfrom
cosmo0920:tweak-for-compatible-layer
Open

Tweak for compatible layer#2
cosmo0920 wants to merge 4 commits into
shivaken:masterfrom
cosmo0920:tweak-for-compatible-layer

Conversation

@cosmo0920

Copy link
Copy Markdown

I think that this plugin should work with Fluentd v0.14 on compatible layer.
This plugin still locks Fluentd dependency and does not depends on test-unit for development.
And the biggest issue is using Engine.emit.
It causes raising exception at runtime because Fluentd v0.14 treats it as a bug.

@shivaken

shivaken commented Mar 6, 2018

Copy link
Copy Markdown
Owner

Hi @cosmo0920 , thanks for the merge request.
I'm not sure how the latest fluentd and fluent-plugin-elasticsearch treats this issue.
It may take some time for me to understand. Please wait a bit more.

@shivaken shivaken left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Just found a small issue. But I need to setup test environment to confirm it.
It would be great if you can check my comment and test with some data.

Comment thread test/out_better_timestamp.rb Outdated
mapped = {}

msec = 1
time = Time.now

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This seems to be using time when the plugin receives the log instead of using time stored as @timestamp.
I'm afraid this may generate unexpected value.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Oops, I misunderstood this test case scenario.
I've fixed it.

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.

2 participants