简体   繁体   English

从内部部署站点登录Azure

[英]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.

相关问题 随机无法从 Azure 连接到本地 MySql - Random unable to connect from Azure to On-Premise MySql 使用CSOM从SharePoint 2013内部部署获取本地化列表/站点名称 - Get localized list/site name from SharePoint 2013 on-premise with CSOM 从内部部署Service Fabric应用程序登录到Azure存储模拟器 - Logging to Azure Storage Emulator from on premise Service Fabric application 本地服务运行状况监视 - On-premise service health monitoring 将WCF与本地ServiceBus一起使用 - Using WCF with on-premise ServiceBus 尝试将自定义应用程序添加到 SharePoint 2013 内部部署时,我收到错误“您需要 Office 开发工具来创建站点” - When trying to add a Custom app to a SharePoint 2013 on-premise I get the error “You need Office Development tools to create a site” 如何根据本地 ADFS 对用户进行身份验证 - How to authenticate user against on-premise ADFS 从Windows Azure工作者角色在Premise上连接到CRM 2011 - Connect to CRM 2011 on Premise from windows azure worker role 如何从Azure Web App读写文件到本地NAS? - How to Read and Write files from Azure Web App to an on premise NAS? 建议用于将.NET应用程序部署到外部客户的工具(本地) - Tools recommended to Deploy .NET applications to external customers (On-Premise)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM