简体   繁体   English

Mulesoft-将日志导出到AWS CloudWatch

[英]Mulesoft - Export Log To AWS CloudWatch

I am planning to export logging from MuleSoft CloudHub to AWS CloudWatch. 我打算将日志记录从MuleSoft CloudHub导出到AWS CloudWatch。

I saw there is one AWS CloudWatch Connector in GitHub: https://github.com/mulesoft-labs/mule-amazon-cloudwatch-connector/tree/master/mule-cloudwatch-connector 我看到GitHub中有一个AWS CloudWatch Connector: https : //github.com/mulesoft-labs/mule-amazon-cloudwatch-connector/tree/master/mule-cloudwatch-connector

Is there any examples on how to implement this? 是否有实施此示例?

And which AWS CloudWatch features is supported in this connector? 该连接器支持哪些AWS CloudWatch功能?

I found other export logs method with examples, but not for AWS CloudWatch: https://help.mulesoft.com/s/question/0D52T00004mXUALSA4/export-log-to-external-system 我找到了带有示例的其他导出日志方法,但没有找到适用于AWS CloudWatch的示例: https ://help.mulesoft.com/s/question/0D52T00004mXUALSA4/export-log-to-external-system

Thanks. 谢谢。

You could try to create a Mule application that reads logs from CloudHub using CloudHub's API and pushes them to CloudWatch. 您可以尝试创建一个Mule应用程序,该应用程序使用CloudHub的API从CloudHub读取日志并将其推送到CloudWatch。 The readme for the connector doesn't seem to mention an operation to put logs into CloudWatch, but if CloudWatch has a REST API for it -every AWS product has it- you could use it in your application. 连接器的自述文件似乎没有提到将日志放入CloudWatch的操作,但是如果CloudWatch拥有REST API(每个AWS产品都具有REST API),则可以在应用程序中使用它。

This KB article shows how to get the logs from CloudHub: https://help.mulesoft.com/s/article/How-to-get-whole-Application-logs-from-Cloudhub-through-API 此知识库文章显示了如何从CloudHub获取日志: https ://help.mulesoft.com/s/article/How-to-get-whole-Application-logs-from-Cloudhub-through-API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM