How export last week logs to bucket storage using API automatically (preferred with CRON.xml tasks)

18 views
Skip to first unread message

vitaly....@reps.ai

unread,
Sep 27, 2018, 1:33:57 PM9/27/18
to Google App Engine

Hi Googlres , 

We have an issue, using app-engine 1.9.37 with java8.

Our mission is to use CRON.xml to export every week "last week logs" automatically with API , and store it in Storage pre-defined bucket.


and still didn't find any solution cause there are plenty of different API's and i'm little confused what to use.

We are using StackDrive logs , Attached snapshots below of our logs as example.


please suggest the right API to use :)



thanks
Screen Shot 2018-09-26 at 9.49.32.png
Screen Shot 2018-09-26 at 9.49.05.png

Jorge A (Google Cloud Support)

unread,
Oct 4, 2018, 4:21:13 PM10/4/18
to Google App Engine
You can use the logs.list method to list the logs from Stackdriver for a project. To store it in a bucket you can put the results of the logs.list method into a text file and upload if to GCS. 
Reply all
Reply to author
Forward
0 new messages