Google Cloud Ops エージェントでLaravelログをCloud Loggingに転送する / GCP, Google, サーバー・インフラ / By kaneko tomo Ops エージェントでVMインスタンス上のログファイルをクラウド側に送る設定をしました。 Opsエージェントのインストール 手順 https://cloud.google.com/stackdriver/docs/solutions/ops-agent/installation ログ転送設定 /etc/google-cloud-ops-agent/config.yamlを編集します。 logging: receivers: laravel_log: type: files include_paths: - /var/www/path_to_laravel/storage/logs/*.log service: pipelines: custom_pipeline: receivers: [laravel_log] 再起動させて反映 systemctl restart google-cloud-ops-agent ステータス確認 systemctl status google-cloud-ops-agent Apacheのログも送るように設定 logging: receivers: laravel_log: type: files include_paths: - /var/www/path_to_laravel/storage/logs/*.log httpd_access_log: type: files include_paths: - /var/log/httpd/access_log httpd_error_log: type: files include_paths: - /var/log/httpd/error_log service: pipelines: custom_pipeline: receivers: [laravel_log, httpd_access_log, httpd_error_log] Cloud ロギング画面でログを確認できるようになりました。
「Amazon Linux 2027」のパブリックプレビューが遂に開始!次期OSへの備えと注意点 AWS, Laravel, PHP, サーバー・インフラ, セキュリティ / By kam こんにちは。 今年の6月・7月に、Amazon L…
Amazon Linux 2 サポート終了対策!AL2023移行と長期ロードマップ【後編:移行後の長期運用計画】 AWS, サーバー・インフラ, セキュリティ / By kam 前回の記事では、AL2からAL2023への移行にお…
Amazon Linux 2 サポート終了対策!AL2023移行と長期ロードマップ【前編:現場のチェックリスト】 AWS, Laravel, PHP, サーバー・インフラ, セキュリティ / By kam Amazon Linux 2(以下、AL2)のサポ…