Skip to content
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: add rizhiyi logger #8265

Closed
wants to merge 4 commits into from
Closed

feat: add rizhiyi logger #8265

wants to merge 4 commits into from

Conversation

mcy567
Copy link

@mcy567 mcy567 commented Nov 7, 2022

Description

添加日志易logger

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@mcy567 mcy567 changed the title add rizhiyi logger feat: add rizhiyi logger Nov 7, 2022
Copy link
Author

@mcy567 mcy567 left a comment

Choose a reason for hiding this comment

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

修复失败检查项

@guitu168
Copy link
Contributor

guitu168 commented Nov 8, 2022

Please add test cases and documentation.

local batch_processor_manager = bp_manager_mod.new(plugin_name)

---calc pri---
local Facility = {
Copy link
Member

Choose a reason for hiding this comment

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

Is there any doc for rizhiyi's log format?

Copy link
Member

Choose a reason for hiding this comment

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

日志易可以接收多种格式的日志并自动解析,当前这个插件是基于syslog日志格式开发的

Just curious, can we use the existing syslog plugin to push logs to rizhiyi?

Copy link
Member

Choose a reason for hiding this comment

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

如果syslog插件支持定义syslog的元数据格式和内容

we can also set the format of the logs by configuring the Plugin metadata , ref: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/sls-logger.md#metadata

Even though the syslog documentation doesn't say so, it should be supported and used the same way. You can help to verify it.

Copy link
Member

Choose a reason for hiding this comment

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

我说的元数据指的是粗体的部分,插件的元数据指的的是非粗体的部分(如果我没理解错的话)。

So can we develop the existing syslog plugin and add configuration to make it support rizhiyi?

Copy link
Member

Choose a reason for hiding this comment

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

Even though the syslog documentation doesn't say so, it should be supported and used the same way. You can help to verify it.

fix: not yet supported, waiting for #8279

Copy link
Member

Choose a reason for hiding this comment

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

不会,因为新插件已经开发完了。。你看这种情况是怎么处理,是等syslog插件的新功能吗,还是先使用这个插件?It's up to you!!

IMO, you can wait for the #8279 merg, and add custom log format support on syslog to make log-util generated logs conform to a specific format, such as rizhiyi.

Copy link
Member

Choose a reason for hiding this comment

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

#8279 already merged.

Copy link
Member

Choose a reason for hiding this comment

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

can we merge this PR?

Copy link
Member

Choose a reason for hiding this comment

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

can we merge this PR?

Not. Reason: According to the discussion above, this feature does not require a new plugin, just need to make syslog support rizhiyi.

Copy link
Member

Choose a reason for hiding this comment

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

Great. @mcy567 do you have time to continue this plugin?

@mcy567 mcy567 closed this Jan 10, 2023
@mcy567 mcy567 deleted the rizhiyi branch January 15, 2024 03:25
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.

5 participants