Reputation: 3571
What is the best way to pull load balancing data from Google Cloud?
Upvotes: 0
Views: 165
Reputation: 38389
The Google Cloud Load Balancer generates several kinds of data. There are usage reports, activity logs, and VPN logs. Then there are more generic Google Cloud services like exporting billing data.
Usage reports can get sent to a Google Cloud Storage bucket of your choosing as a CSV file on a daily basis. You can retrieve files from GCS in a variety of ways, the easiest of which is to use the Google Cloud Console. Just click on the log to download it. You can also set up some sort of cron job from the command line using gsutil
, or if you need a program to consume them, there are GCS libraries in a variety of languages.
Activity Logs go through the Stackdriver Logging service. VPN Logs also go through Stackdriver Logging.
Billing data is enabled from the console and is also periodically exported into a Google Cloud Storage bucket.
Upvotes: 1