Google Stackdriver provides powerful monitoring, logging, and diagnostics. It equips you with insight into the health, performance, and availability of cloud-powered applications, enabling you to find and fix issues faster. It is natively integrated with Google Cloud Platform, Amazon Web Services, and popular open source packages. Stackdriver provides a wide variety of metrics, dashboards, alerting, log management, reporting, and tracing capabilities.
We can export logs from stack driver in different ways like
1.Cloud Storage 2.BigQuery 3.Cloud Pub/Sub 4.Custom Destination
For more documentation we can refer below link Exported logs
or else we can use different API to create sinks and export los to destination
Create sinks
Exporting Logs to API
Stackdriver Logging API v2 to export your logs out of Stackdriver Logging. To instead use the Logs Viewer to set up exports
Also we can create sinks through command line for more documentation related to create sinks through command line are mentioned below.
Log Entries Use Stackdriver Monitoring with Google Compute Engine [Monitoring] (https://cloud.google.com/monitoring/quickstart-lamp)
For pricing related press this link