æ¦è¦ railsã®ã¢ããªãã°ãstackdriverã«éããã Gemã使ã£ãæ¹æ³ããã¾ããããªãã£ã fluentdã®è¨å®è¿½å ã§ãã£ããã§ããã®ã§å°ã£ãããã£ã¡ã®ã»ããããã ãããã 1. Gem使ã å ¬å¼ã®Ruby ç¨ Stackdriver Logging ã®è¨å®ã§è¨å®ãã ä¸è¬çã«ã¯ãã£ã¡ã®ã楽ã ã¨æãã ãã®gemããã¦Unicornèµ·åããã¨ã¬ã¹ãã³ã¹ãè¿ã£ã¦ããªããªãç¾è±¡ã解決ã§ãã諦ãã 2. ãã®ã³ã°ã¨ã¼ã¸ã§ã³ã(fluentd)ã®ã«ã¹ã¿ã è¨å®ãã ä»åã¯ãã£ã¡ãæ¡ç¨ãã fluentdã®è¨å®è¿½å æ¹æ³ åæ: GCEã«ãã®ã³ã°ã¨ã¼ã¸ã§ã³ããã¤ã³ã¹ãã¼ã«ããã¦ãã fluentdã®ã«ã¹ã¿ã è¨å®ããã ->ããã¥ã¡ã³ã /etc/google-fluentd/config.d/* ã«fluentdç¨ã®éä¿¡è¨å®ãã¡ã¤ã«ãããã¦ãããããã«éä¿¡ããããã°ã®è¨å®ã追å ããã ä¾:
{{#tags}}- {{label}}
{{/tags}}