cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get full logs of Cloud Foundry

Yuta_Takahashi
Explorer
0 Kudos
328

Dear BTP experts,

I'm currently using CF CLI command "cf logs" to get an application log. The log output command "cf logs" of the CF command, but I am not sure whether it can or cannot log for a specified time or period of time.

The option '--recent' is also not clear as to which period of time can be logged.

Therefore, can anyone tell me how long the logging period is when the command is executed?

View Entire Topic
Dinu
Contributor
0 Kudos

The Log cache is recommended [1] by Cloud Foundry to be sized to keep logs for at least 15 minutes. You should not expect more than that. Typically, it is more than that. 

You should use application logging service [2] or cloud logging service [3] to keep logs for 7 days or as long as you want respectively. You could also drain logs to a 3rd party log management service [4]. 

[1] Cloud Foundry Log Cache

[2] SAP Application Logging Service for BTP

[3] SAP Cloud Logging 

[4] Streaming app logs to log management services 

Yuta_Takahashi
Explorer
0 Kudos

Dear Dinu,

Thank you for your advice. I need logs for a long time than duration of logging services. When I don't use 3rd party products, do you know whether SAP has other services exporting logs or not?

Dinu
Contributor
0 Kudos
[3] SAP Cloud Logging mentioned above can retain the logs for as long as you want (max 90 days currently). You pay for the storage.