[英]Logging to Azure from on-premise site
I have a .net application not hosted in Azure. 我有一个.net应用程序没有托管在Azure中。 I would love to be able to read it's log and traces from a centralized place.
我希望能够从集中的地方读取它的日志和痕迹。 I thought immediately of Azure Blob Storage as a good place to do so.
我立刻想到Azure Blob Storage是一个很好的地方。
When inside Azure, I am familiar with enabling logging in .cscfg file: 在Azure中,我熟悉启用.cscfg文件的登录:
Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString.
But in that case, the application is NOT in Azure. 但在这种情况下,应用程序不在Azure中。
Is it possible ?... i mean without going against best practices... 有可能吗?...我的意思是不违反最佳做法......
If yes, how to do so ? 如果是,怎么办? If no, any other centralized logging and tracing system that you would recommend ?
如果不是,您会推荐任何其他集中式日志记录和跟踪系统?
不在Azure中存储日志,但我们在Azure中托管我们的应用程序并将我们的日志存储在Logentries.com中 - 优秀的免费套餐 ,出色的分析以及来自localhost / Azure /任何其他可以想象的互联网位置的工作。
I think it shouldn't be difficult to achieve this with AZ-Copy tool. 我认为使用AZ-Copy工具实现这一目标并不困难。 It is resumable and resilient, IHMO with the right switches and as a scheduled task it can be a very robust solution for your purposes.
它具有可恢复性和弹性,IHMO具有正确的开关,并且作为计划任务,它可以是一个非常强大的解决方案,适合您的目的。
Going further into detail, I have the idea that it should be feasible to make use of that old-fashined 'archive' file attribute to keep track of what is pending to being uploaded, and with a simple command line delete what has already been uploaded. 进一步详细说明,我认为应该可以利用那个古老的 'archive'文件属性来跟踪上传的待处理内容,并通过一个简单的命令行删除已经上传的内容。
Furthermore, in one hand, with SQL PolyBase one can afterwards make queries to the Azure Storage uploaded files as if they were on a Sql Table, or on the other hand, point Azure PowerBI to prepare a dashboard if necessary. 此外,一方面,使用SQL PolyBase,可以向Azure存储上载的文件进行查询,就像它们位于Sql表上一样,或者另一方面,指向Azure PowerBI以在必要时准备仪表板。
(In fact, I plan to do it myself when I have a bit of time for testing, I'll update this answer with my findings.) (事实上,当我有一点时间进行测试时,我打算自己做,我会用我的发现更新这个答案。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.