我已经成功让logstash 在我的本地Windows 设置上作为概念验证工作。以下是设置概述:
- 我的 .Net 应用通过 NLogger 将消息写入 logger.txt 文件。
- 按照本指南操作后,我将 Logstash 作为 Windows 服务运行 ( https://community.ulyaoth.net/threads/how-to-install-logstash-on-a-windows-server-with-kibana-in-iis.17/ )
- logstash 代理将 .txt 文件作为“输入”,将信息过滤到更有意义的字段中,然后将它们写入我的 ElastcSearch 实例。
- 然后,我可以使用 Kibana Web UI 查看这些内容,从我的日志中获取一些有意义的信息。
- 快乐的日子(在我的机器上运行!)
当我尝试将其移至 Windows Azure 上的生产环境时,出现了问题。
目前网络上的所有信息都提到运行 Linux VM 在 Azure 上托管 Logstash,但作为 M$ 猴子,我宁愿不这样做。
因此,非常感谢有关以故障安全/自动化方式在 Azure 上运行 Logstash 代理的任何指南/建议?
最佳答案
Microsoft 提供了一个 PowerShell 脚本,可以在 Azure 中设置 ELK。请参阅https://github.com/mspnp/semantic-logging/tree/elk 。
关于c# - 如何使用 Windows 配置在 Azure 上设置 Logstash,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27038495/