Re: Logs on File System


Vinod Singh <vinoddandy@...>
 

Thanks for quick response, folks :-)

I am using DEA CLoud Foundry and finally we shall integrate with ELK system.

In interim solution I was wondering if I can drain logs somehow outside CF
compnents on File system. It would be difficult for me to change the code.
The logs are being written on syslog out.

Regards,
Vinod



On Fri, Aug 5, 2016 at 2:45 PM, Daniel Jones <
daniel.jones(a)engineerbetter.com> wrote:

Hi Vinod,

If you need to make the logs available to somewhere that they can be read
easily, then the 'correct' solution is to use a log management service
<https://docs.pivotal.io/pivotalcf/1-7/devguide/services/log-management.html>
like Splunk, Loggly, LogSearch <http://www.logsearch.io/> or similar.

If, as I suspect, you need a tactical solution in a hurry to get these
logs somewhere other than the container's transient filesystem, then you
might want to consider using a different appender
<https://logging.apache.org/log4j/2.x/manual/appenders.html> that perhaps
writes to a SQL database or some other permanent data store. This is
definitely *not* the right answer though, and could be considered a quick
hack at best.

Regards,
Daniel Jones - CTO
+44 (0)79 8000 9153
@DanielJonesEB <https://twitter.com/DanielJonesEB>
*EngineerBetter* Ltd <http://www.engineerbetter.com> - UK Cloud Foundry
Specialists

On Fri, Aug 5, 2016 at 7:11 PM, Daniel Mikusa <dmikusa(a)pivotal.io> wrote:

On Fri, Aug 5, 2016 at 2:11 PM, Daniel Mikusa <dmikusa(a)pivotal.io> wrote:

On Fri, Aug 5, 2016 at 12:17 PM, Vinod Singh <vinoddandy(a)gmail.com>
wrote:

Hi All,

I have application running on Cloud Foundry with Default Java Build
packs.

For immediate solution, I need to drain application logs on File system.
Can you expand on this? What exactly are you trying to do? Delete the
log files written by the app? Download log files written by the app for
review? something else?



Do you recommend any quick solution please ?
Do you have Diego? If so, `cf ssh` can do most things. You can also
use it to `scp` files down.
Prematurely sent that, meant to include this link:
https://github.com/cloudfoundry/diego-ssh#cloud-foundry-
via-cloud-controller-and-uaa

Dan







Regards,
Vinod

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.