To get logs for a specific GAE service, you can use one of the following:

   - Selecting the text of the logs in the browser when viewing the Logging 
   window in the Developers Console.  With most modern browsers, it's possible 
   for web site designers to control how content is copied and pasted despite 
   how it may be rendered on the page.  Thus, some page components that seem 
   as though they won't look right when pasted elsewhere in plain text can 
   actually look readable.
   - Cloud SDK in the terminal with app logs read 
   <https://cloud.google.com/sdk/gcloud/reference/app/logs/read>.  The 
   output of such commands is generally formatted to be read in monospace, 
   plain text window and are therefore suitable for plain text exchanges.
   
*     gcloud app logs read --level=debug --service=<your-app-service> 
--version=<your-app-service-version>*

   - Create an Export into a sink like Cloud Storage 
   
<https://cloud.google.com/logging/docs/export/configure_export_v2#errors_exporting_to_cloud_storage>
 
   so that you could then share the logs as files in an email
   
These are generally very useful ways to troubleshoot as it makes it easier 
search key terms from logs in forums such as Google, Stack Overflow or this 
Google Group.  I hope the above is helpful.

On Tuesday, February 7, 2017 at 12:08:05 AM UTC-5, Rajesh Gupta wrote:
>
> Hello Nick,
>
> Is there a way to get the txt of the log files.  I don't see any options 
> to export the logs for the given time to a txt file.
>
> I cannot pass on the text logs to the group, as url's contain some 
> information.  I will open a production case.  
>  
> Regards,
> Rajesh
> *www.VeersoftSolutions.com <http://www.veersoftsolutions.com/>*
> *www.GainERP.com <https://www.gainerp.com/>*
> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and 
> Mobile*
>
>
>
>
> On Thu, Dec 29, 2016 at 5:12 AM, 'Nick (Cloud Platform Support)' via 
> Google App Engine <google-appengine@googlegroups.com> wrote:
>
>> Hey Rajesh,
>>
>> The scaling behaviour on your app is highly dependent on the contents of 
>> your app.yaml / appengine-web.xml file. Could you post that? 
>>
>> Also, it would be good to get a larger time-window selection of logs in 
>> text format (rather than screenshot) along with a screenshot of the 
>> instance numbers graph covering the same time period. This would be very 
>> helpful in reasoning about what is happening here.
>>
>> If you have any further questions, feel free to send them along with your 
>> reply and I'll be glad to assist in answering them. 
>>
>> Cheers,
>>
>> Nick
>> Cloud Platform Community Support  
>>
>>
>> On Sunday, December 25, 2016 at 9:56:07 PM UTC-5, Rajesh Gupta wrote:
>>
>>> Sorry, in 4 minutes (not 4 sec) there are 4 new instances.  You can see 
>>> that betwee 23:32 & 23:36.
>>>
>>> There are only 6-7 requests during that time.
>>>
>>> On Mon, Dec 26, 2016 at 7:57 AM, Rajesh Gupta <
>>> rajesh.gu...@veersoftsolutions.com> wrote:
>>>
>>>> Hello 
>>>> Following is the traffic to our website.  
>>>>
>>>> You can see suddenly, there are new four instances ('i' in the orange 
>>>> color denotes log.warning).  I do log.warning in my context listener.  
>>>> Between 23:32 & 23:36, ie 4 secs, there are new four instances.  The 
>>>> traffic could have well served with the normal instance.  Each of the 
>>>> instance spinning and serving is taking approx 22 sec.  
>>>>
>>>> This is a very bad experience to our users.
>>>>
>>>> Please suggest the recommended correct settings for low traffic 
>>>> website, so that instance spinning is not taking place.
>>>>
>>>>
>>>> 23:54:14.017GET200203 B132 msGooglebot 2/robots.txt
>>>> 23:54:12.571GET200203 B1.2 sGooglebot 2/robots.txt
>>>> 23:36:08.111POST20031.12 KB23.3 sChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.listProducts
>>>> 23:35:51.633POST200291 B22.6 sChrome 55
>>>> /_ah/spi/com.veersoft.services.api.ReportAPI.viewLedgerTransaction
>>>> 23:34:09.281POST20051.89 KB19.1 sChrome 55
>>>> /_ah/spi/com.veersoft.services.api.ReportAPI.viewLedgerTransaction
>>>> 23:33:10.557POST2003.49 KB1 sChrome 55
>>>> /_ah/spi/com.veersoft.services.api.ReportAPI.viewLedgerTransaction
>>>> 23:33:06.428POST2001.46 KB246 msChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.listBankCashAccounts
>>>> 23:32:40.392POST20031.12 KB463 msChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.listProducts
>>>> 23:32:11.464POST2008.87 KB26.5 sChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.viewCustomerTransaction
>>>> 23:31:56.158POST200644 B594 msChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.viewCustomerTransaction
>>>> 23:31:09.541POST2008.87 KB707 msChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.viewCustomerTransaction
>>>> 23:30:34.928POST2007.83 KB807 msChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.viewCustomerTransaction
>>>> 23:30:11.573POST20027.9 KB672 msChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.listCustomer
>>>> 23:29:55.646POST2005.01 KB692 msChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.viewCustomerTransaction
>>>> 23:29:18.924POST20027.9 KB928 msChrome 55
>>>> /_ah/spi/com.veersoft.services.api.MastersApiV3.listCustomer
>>>>
>>>>
>>>> -- 
>>>> Regards,
>>>> Rajesh
>>>> *www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>*
>>>> *www.GainERP.com <https://www.gainerp.com>*
>>>> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform 
>>>> and Mobile*
>>>>
>>>>
>>>
>>>
>>> -- 
>>> Regards,
>>> Rajesh
>>> *www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>*
>>> *www.GainERP.com <https://www.gainerp.com>*
>>> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and 
>>> Mobile*
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengine+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/2cc43cd5-7ef2-4e1c-9d54-819325eec656%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/2cc43cd5-7ef2-4e1c-9d54-819325eec656%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1b160d7e-5ae2-431f-a391-2a4951532a7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Rajesh Gupta
    • [google-appen... Rajesh Gupta
      • [google-a... 'Nick (Cloud Platform Support)' via Google App Engine
        • Re: [... Rajesh Gupta
          • R... 'Nicholas (Google Cloud Support)' via Google App Engine
            • ... 'Nick (Cloud Platform Support)' via Google App Engine
              • ... 'Nick (Cloud Platform Support)' via Google App Engine

Reply via email to