title: Exporting stackdriver logs into Google Cloud Storage as csv files
body: <p>I am running a Node.js application deployed to Google App Engine.
  I am using the <a href="https://www.npmjs.com/package/winston" rel="nofollow noreferrer">winston </a> library in addition with 'Stackdriver Logging Winston plugin' [@google-cloud/logging-winston].</p>
  
  <p>[<a href="https://cloud.google.com/logging/docs/setup/nodejs" rel="nofollow noreferrer">Link to the tutorial for setting up winston logging</a>]</p>
  
  <p>[<a href="https://cloud.google.com/logging/docs/export/configure_export_v2" rel="nofollow noreferrer">Link to the tutorial for exporting logs into Google Storage Bucket</a>]</p>
  
  <p>I am exporting the stackdriver logs to the Google Storage Bucket by creating a sink. Currently all the logs are getting stored in the storage bucket as 'json' files. I would like to get them stored as 'csv' files.</p>
  
  <p>I am currently trying to modify the format in which winston logs are generated to get them converted to csv format, but unable to do so.</p>
  
  <p>I've also looked into Stackdriver Logging Winston plugin[@google-cloud/logging-winston], but no luck here also.</p>
  
  <p>Also, while exporting the logs from stackdriver logging to Storage Bucket there is no specification of the format in which the logs are to be saved. [<a href="https://cloud.google.com/logging/docs/export/configure_export_v2" rel="nofollow noreferrer">Creating sink in Storage bucket for exporting logs</a>]</p>
  
  <p>What should the approach to get these logs stored as csv files ?</p>
  
  <p><a href="https://storage.googleapis.com/logging-195811.appspot.com/my-test-log/2018/02/21/08%3A00%3A00_08%3A59%3A59_S0.json" rel="nofollow noreferrer">Link to the logs.json file</a></p>