Configure stdout logging

2,228 views
Skip to first unread message

Vishal Shah

unread,
May 25, 2016, 7:39:12 AM5/25/16
to gce-discussion
Anybody know a way to capture stdout from a process to be captured and accessible via google log console apart form being mixed up with syslog? Just like appengine, i would like a stdout and stderr filter in the log console to see just my app's logs. Currently they are routed to syslog /var/log/messages

I am on centos7

Thanks.

Faizan (Google Cloud Support)

unread,
May 25, 2016, 5:12:29 PM5/25/16
to gce-discussion
Hello Vishal,

You can achieve this setup by installing Google Stackdriver Logging on your VM instance. The agent streams logs from common third-party applications and system software to Stackdriver Logging. You can refer to this link for more information and steps to install.

I hope that helps.

Faizan

Vishal Shah

unread,
May 29, 2016, 8:44:09 AM5/29/16
to gce-discussion
Hi Faizan,

I am using Stackdriver logging, but unsure how using stackdriver and fluentd to achieve this. Was looking for some help :)

Cheers.

Faizan (Google Cloud Support)

unread,
May 30, 2016, 7:09:30 PM5/30/16
to gce-dis...@googlegroups.com
Hello Vishal,

You can configure Stackdriver Logging agent on your VM instance to stream custom logs to Stackdriver Logging on your developer console. As such, you can redirect the stdout and stderr from your application to these custom logs which can be streamed through developer console. For more information and sample configuration you can refer to these links[1][2].

I hope that helps.

Faizan

Reply all
Reply to author
Forward
0 new messages