Skip to content

Tweak for compatible layer#2

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

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

Conversation

@cosmo0920
Copy link

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
Copy link
Owner

shivaken commented Mar 6, 2018

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.

Copy link
Owner

@shivaken shivaken left a comment

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.

mapped = {}

msec = 1
time = Time.now
Copy link
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
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