Logging to Google Cloud Logging from log4net

I have an asp.net web application that emit logs via log4net. I need to get the log messages over to Google Cloud Logging. What is the best way to do this?

Based on fluentd documentation and Google Cloud documentation, the best I can come up with now is:

  1. On the Windows machine where the web app is runnning, have log4net log to local files.
  2. On the same machine, run nxlog and have it ship the log files to a Linux machine.
  3. Have google-fluentd, running on the Linux machine, transmit the logs to Google Cloud Logging API.


Source: windows

Leave a Reply