{"id":10247,"date":"2025-10-20T09:05:59","date_gmt":"2025-10-20T09:05:59","guid":{"rendered":"https:\/\/pokecon.jp\/job\/?p=10247"},"modified":"2025-10-20T09:05:59","modified_gmt":"2025-10-20T09:05:59","slug":"%e9%96%8b%e7%99%ba%e8%80%85%e3%81%8c%e9%81%8b%e7%94%a8%e3%82%92%e7%90%86%e8%a7%a3%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%ae%e7%ac%ac%e4%b8%80%e6%ad%a9-php%e3%81%ae%e3%82%b9%e3%83%ad%e3%83%bc","status":"publish","type":"post","link":"https:\/\/pokecon.jp\/job\/10247\/","title":{"rendered":"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- &#8211; Cybozu Inside Out"},"content":{"rendered":"\n<\/p>\n<div>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u3001<a target=\"_blank\" href=\"https:\/\/cybozu.github.io\/summer-blog-fes-2025\/\">CYBOZU SUMMER BLOG FES &#8217;25<\/a>\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30b5\u30a4\u30dc\u30a6\u30ba Garoon\u958b\u767a Tsukimi\u30c1\u30fc\u30e0\u6240\u5c5e\u306e\u4e2d\u7530\u3067\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u306f\u3001\u958b\u767a\u30c1\u30fc\u30e0\u306e\u4eba\u9593\u304c\u30b5\u30fc\u30d3\u30b9\u904b\u7528\u306e\u4ed5\u7d44\u307f\u3084\u53ef\u89b3\u6e2c\u6027\u306b\u8208\u5473\u3092\u6301\u3061\u3001\u5b9f\u969b\u306b\u53d6\u308a\u7d44\u3093\u3067\u307f\u305f\u5185\u5bb9\u3092\u3082\u3068\u306b\u57f7\u7b46\u3057\u305f\u3082\u306e\u3067\u3059\u3002<br \/>\nPHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u4e0a\u624b\u304f\u6d3b\u7528\u3067\u304d\u3066\u306a\u3044\u306a\u3001\u3068\u3044\u3046\u8ab2\u984c\u611f\u3092\u304d\u3063\u304b\u3051\u306b\u3001\u30ed\u30b0\u306e\u69cb\u9020\u5316\u3084\u30e1\u30c8\u30ea\u30af\u30b9\u5316\u3092\u8a66\u307f\u305f\u5185\u5bb9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u30ed\u30b0\u306f\u898b\u3066\u3044\u308b\u3051\u3069\u30e1\u30c8\u30ea\u30af\u30b9\u3063\u3066\u3042\u3093\u307e\u308a\u610f\u8b58\u3057\u3066\u306a\u3044\u306a\u3001\u3068\u3044\u3046\u540c\u3058\u3088\u3046\u306a\u7acb\u5834\u306e\u65b9\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u904b\u7528\u306b\u3042\u305f\u308a\u3001\u969c\u5bb3\u8abf\u67fb\u3084\u6027\u80fd\u5206\u6790\u3092\u3059\u308b\u305f\u3081\u306b\u30ed\u30b0\u3092\u53ce\u96c6\u30fb\u6d3b\u7528\u3059\u308b\u5834\u9762\u306f\u591a\u3005\u3042\u308a\u975e\u5e38\u306b\u6709\u7528\u3067\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u305d\u306e\u30ed\u30b0\u304c\u5e38\u306b\u6271\u3044\u3084\u3059\u3044\u5f62\u3067\u51fa\u529b\u3055\u308c\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<br \/>\n\u7279\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u304c\u56fa\u5b9a\u306e\u5f62\u5f0f\u3067\u51fa\u529b\u3059\u308b\u30ed\u30b0\u306f\u3001\u624b\u3092\u5165\u308c\u306b\u304f\u304f\u3001\u691c\u7d22\u3084\u5206\u6790\u3092\u3057\u3065\u3089\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>PHP\u3067\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u6642\u9593\u304c\u4e00\u5b9a\u6642\u9593\u3092\u8d85\u3048\u305f\u5834\u5408\u306b\u30b9\u30ed\u30fc\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u306f\u307e\u3055\u306b\u305d\u306e\u5178\u578b\u4f8b\u3067\u3059\u3002<br \/>\n\u30b9\u30ed\u30fc\u30ed\u30b0\u306f\u6027\u80fd\u52a3\u5316\u306e\u8abf\u67fb\u306b\u5f79\u7acb\u3061\u307e\u3059\u304c\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u8907\u6570\u884c\u304b\u3064\u975e\u69cb\u9020\u7684\u306a\u5f62\u5f0f\u3067\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u3053\u306ePHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u984c\u6750\u306b\u3001\u6b21\u306e2\u70b9\u3092\u4e2d\u5fc3\u306b\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30ed\u30b0\u3092\u69cb\u9020\u5316\u3059\u308b\u65b9\u6cd5\uff08\u8907\u6570\u884c\u30ed\u30b0\u306e\u307e\u3068\u3081\u65b9\u3001\u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u62bd\u51fa\u306a\u3069\uff09<\/li>\n<li>\u69cb\u9020\u5316\u3057\u305f\u30ed\u30b0\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<p>PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u306b\u9650\u3089\u305a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u5468\u8fba\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u30ed\u30b0\u306e\u5f62\u5f0f\u5909\u66f4\u304c\u3067\u304d\u306a\u3044\u307e\u307e\u306b\u3001\u69cb\u9020\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306f\u3001PHP\u304c\u51fa\u529b\u3059\u308b\u30b9\u30ed\u30fc\u30ed\u30b0\u306e\u4e00\u4f8b\u3067\u3059\u3002<\/p>\n<pre class=\"code log\" data-lang=\"log\" data-unlink=\"\">[19-Oct-2025 03:22:25]  [pool www] pid 8\nscript_filename = \/home\/www\/php\/scripts\/simulate_slow_response_2.php\n[0x00007fb2e26131b0] sleep() \/home\/www\/php\/scripts\/include\/SlowHelper.php:10\n[0x00007fb2e2613160] doSleep() \/home\/www\/php\/scripts\/include\/Worker.php:13\n[0x00007fb2e26130f0] process() \/home\/www\/php\/scripts\/include\/SlowSimulator.php:13\n[0x00007fb2e2613080] run() \/home\/www\/php\/scripts\/simulate_slow_response_2.php:8\n\n[19-Oct-2025 03:34:37]  [pool www] pid 7\nscript_filename = \/home\/www\/php\/scripts\/simulate_slow_response_1.php\n[0x00007a2bcb4141b0] sleep() \/home\/www\/php\/scripts\/include\/SlowHelper.php:10\n[0x00007a2bcb414160] doSleep() \/home\/www\/php\/scripts\/include\/Worker.php:13\n[0x00007a2bcb4140f0] process() \/home\/www\/php\/scripts\/include\/SlowSimulator.php:13\n[0x00007a2bcb414080] run() \/home\/www\/php\/scripts\/simulate_slow_response_2.php:8\n...<\/pre>\n<p>\u3053\u306e\u30ed\u30b0\u306b\u306f\u3001\u767a\u751f\u6642\u523b\u3001\u30d7\u30ed\u30bb\u30b9ID\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d1\u30b9\u3001\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u306a\u3069\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u304c\u3001<br \/>\n1\u3064\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u304c\u8907\u6570\u884c\u306b\u308f\u305f\u3063\u3066\u304a\u308a\u5404\u884c\u306e\u5f62\u5f0f\u3082\u7570\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u6d3b\u7528\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8ab2\u984c\u3092\u611f\u3058\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Kibana\u3084Grafana\u306a\u3069\u306e\u53ef\u8996\u5316\u30c4\u30fc\u30eb\u30671\u884c\u305a\u3064\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u3001\u30ed\u30b0\u306e\u5168\u4f53\u50cf\u304c\u628a\u63e1\u3057\u3065\u3089\u3044<\/li>\n<li>grep\u3057\u3088\u3046\u306b\u3082\u5f97\u305f\u3044\u60c5\u5831\u304c1\u884c\u306b\u307e\u3068\u307e\u3063\u3066\u304a\u3089\u305a\u3001\u90e8\u5206\u7684\u306b\u3057\u304b\u691c\u7d22\u7d50\u679c\u304c\u5f97\u3089\u308c\u306a\u3044<\/li>\n<li>\u30b9\u30ed\u30fc\u30ed\u30b0\u306e\u767a\u751f\u6642\u523b\u3084\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u4f7f\u3063\u3066\u306e\u96c6\u8a08\u3001\u50be\u5411\u306e\u628a\u63e1\u304c\u96e3\u3057\u3044<\/li>\n<\/ul>\n<p>\u3053\u306e\u3088\u3046\u306a\u975e\u69cb\u9020\u7684\u306a\u30ed\u30b0\u306f\u3001PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u306b\u9650\u3063\u305f\u8a71\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\nPHP\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3001MySQL\u306e\u30b9\u30ed\u30fc\u30af\u30a8\u30ea\u30ed\u30b0\u306a\u3069\u3082\u540c\u69d8\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u8005\u304c\u81ea\u7531\u306b\u5f62\u5f0f\u3092\u5909\u3048\u3089\u308c\u306a\u3044\u30b1\u30fc\u30b9\u306f\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u3092\u904b\u7528\u3059\u308b\u4e0a\u3067\u3053\u3046\u3057\u305f\u30ed\u30b0\u3092\u305d\u306e\u307e\u307e\u6d3b\u7528\u3059\u308b\u3068\u3001\u969c\u5bb3\u539f\u56e0\u3092\u52b9\u7387\u7684\u306b\u8abf\u67fb\u3067\u304d\u306a\u3044\u5834\u5408\u3084\u3001\u969c\u5bb3\u767a\u751f\/\u6027\u80fd\u52a3\u5316\u306e\u5146\u5019\u3092\u898b\u9003\u3059\u304a\u305d\u308c\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u898f\u6a21\u304c\u5927\u304d\u304f\u306a\u308a\u3001\u30ed\u30b0\u306e\u91cf\u304c\u5897\u3048\u308c\u3070\u5897\u3048\u308b\u307b\u3069\u3001\u4eba\u306e\u624b\u306b\u3088\u308b\u8abf\u67fb\u306f\u56f0\u96e3\u306b\u306a\u308a\u3001\u6a5f\u68b0\u7684\u306a\u5206\u6790\u3084\u30a2\u30e9\u30fc\u30c8\u8a2d\u5b9a\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<br \/>\n\u672c\u8a18\u4e8b\u3067\u306f\u3001\u3053\u3046\u3057\u305f\u8ab2\u984c\u306b\u5bfe\u51e6\u3059\u308b\u305f\u3081\u306b\u3001\u30ed\u30b0\u3092\u69cb\u9020\u5316\u3057\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u3092\u69cb\u9020\u5316\u3059\u308b\u3053\u3068\u81ea\u4f53\u306f\u65b0\u3057\u3044\u8003\u3048\u65b9\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u3067\u69cb\u9020\u5316\u3057\u3066\u51fa\u529b\u3067\u304d\u306a\u3044\u30ed\u30b0\u3092\u5916\u90e8\u3067\u6574\u5f62\u3059\u308b\u300d\u3068\u3044\u3046\u70b9\u304c\u4eca\u56de\u306e\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<br \/>\n\u6b21\u7ae0\u4ee5\u964d\u3067\u306f\u3001\u5b9f\u969b\u306bPHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u3069\u306e\u3088\u3046\u306b\u69cb\u9020\u5316\u3057\u3001\u6271\u3044\u3084\u3059\u3044\u5f62\u306b\u5909\u63db\u3057\u3066\u3044\u304f\u304b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u30ed\u30b0\u3092\u69cb\u9020\u5316\u3059\u308b\u610f\u7fa9\u3084\u3001\u5b9f\u88c5\u306e\u8a2d\u8a08\u601d\u60f3\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u3082\u8a73\u3057\u304f\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u305c\u3072\u4f75\u305b\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><iframe src=\"https:\/\/hatenablog-parts.com\/embed?url=https%3A%2F%2Fblog.cybozu.io%2Fentry%2F2024%2F08%2F07%2F080000\" title=\"\u69cb\u9020\u5316\u30ed\u30b0\u3068\u5b9f\u88c5 -Go\u306eslog\u306b\u3088\u308b\u5b9f\u8df5- - Cybozu Inside Out | \u30b5\u30a4\u30dc\u30a6\u30ba\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\" loading=\"lazy\"><\/iframe><cite class=\"hatena-citation\"><a target=\"_blank\" href=\"https:\/\/blog.cybozu.io\/entry\/2024\/08\/07\/080000\">blog.cybozu.io<\/a><\/cite><\/p>\n<p>\u30d6\u30ed\u30b0\u6295\u7a3f\u306b\u3042\u305f\u308a\u3001PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u53ce\u96c6\u30fb\u69cb\u9020\u5316\u3057\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u3059\u308b\u305f\u3081\u306e\u4e00\u4f8b\u3068\u3057\u3066\u30b5\u30f3\u30d7\u30eb\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<br \/>\n\u672c\u8a18\u4e8b\u3067\u306f\u3001\u3053\u308c\u3092\u53c2\u8003\u306b\u30ed\u30b0\u306e\u53ce\u96c6\u304b\u3089\u53ef\u8996\u5316\u307e\u3067\u306e\u6d41\u308c\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p><iframe src=\"https:\/\/hatenablog-parts.com\/embed?url=https%3A%2F%2Fgithub.com%2Fynkt%2Fphp-fpm-log-observe-sample\" title=\"GitHub - ynkt\/php-fpm-log-observe-sample: Sample project to observe PHP-FPM slow logs via Fluent Bit \/ OpenTelemetry \/ Grafana.\" class=\"embed-card embed-webcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 155px; max-width: 500px; margin: 10px 0px;\" loading=\"lazy\"><\/iframe><cite class=\"hatena-citation\"><a target=\"_blank\" href=\"https:\/\/github.com\/ynkt\/php-fpm-log-observe-sample\">github.com<\/a><\/cite><\/p>\n<p>\u672c\u69cb\u6210\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u53ce\u96c6\u30fb\u69cb\u9020\u5316\u3057\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><a target=\"_blank\" href=\"https:\/\/github.com\/fluent\/fluent-bit\"><strong>Fluent Bit<\/strong><\/a>: \u8efd\u91cf\u306a\u30ed\u30b0\u53ce\u96c6\u30fb\u51e6\u7406\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3002\u8907\u6570\u884c\u30ed\u30b0\u306e\u7d50\u5408\u3084\u69cb\u9020\u5316\u3092\u62c5\u5f53<\/li>\n<li><a target=\"_blank\" href=\"https:\/\/github.com\/open-telemetry\/opentelemetry-collector\"><strong>OpenTelemetry Collector<\/strong><\/a>:\u30ed\u30b0\u3084\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u53ce\u96c6\u30fb\u5909\u63db\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3092\u884c\u3046\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3002\u30ed\u30b0\u3092\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u5909\u63db\u3059\u308b<\/li>\n<li><a target=\"_blank\" href=\"https:\/\/github.com\/grafana\/loki\"><strong>Loki<\/strong><\/a>: \u69cb\u9020\u5316\u30ed\u30b0\u306e\u4fdd\u5b58\u3068\u30af\u30a8\u30ea\u3092\u884c\u3046\u30ed\u30b0\u30b9\u30c8\u30ec\u30fc\u30b8<\/li>\n<li><a target=\"_blank\" href=\"https:\/\/github.com\/prometheus\/prometheus\"><strong>Prometheus<\/strong><\/a>: \u30e1\u30c8\u30ea\u30af\u30b9\u306e\u4fdd\u5b58\u3068\u30af\u30a8\u30ea\u3092\u884c\u3046\u30e1\u30c8\u30ea\u30af\u30b9\u30b9\u30c8\u30ec\u30fc\u30b8<\/li>\n<li><a target=\"_blank\" href=\"https:\/\/github.com\/grafana\/grafana\"><strong>Grafana<\/strong><\/a>: Loki\u3084Prometheus\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u53ef\u8996\u5316\u3059\u308b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u30c4\u30fc\u30eb<\/li>\n<\/ul>\n<p>\u30ed\u30b0\u306e\u69cb\u9020\u5316\u3084\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u3059\u308b\u65b9\u6cd5\u306f\u69d8\u3005\u3042\u308a\u307e\u3059\u3002<br \/>\nOpenTelemetry Collector\u5185\u3067\u30ed\u30b0\u306e\u30d1\u30fc\u30b9\u3084\u69cb\u9020\u5316\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u751f\u6210\u3092\u884c\u3046\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3057\u3001<br \/>\nGrafana Alloy\u3067\u306f\u30ed\u30b0\u306e\u53ce\u96c6\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u3059\u308b\u307e\u3067\u30921\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u5b8c\u7d50\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u5b9f\u969b\u306b\u8a66\u3057\u305f\u308a\u904b\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u74b0\u5883\u3084\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u67d4\u8edf\u306b\u30a2\u30ec\u30f3\u30b8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30ed\u30b0\u306e\u53ce\u96c6\u304b\u3089\u53ef\u8996\u5316\u307e\u3067\u306e\u5168\u4f53\u306e\u6d41\u308c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><img decoding=\"async\" src=\"https:\/\/cdn-ak.f.st-hatena.com\/images\/fotolife\/c\/cybozuinsideout\/20251020\/20251020170011.png\" alt=\"flowchart\" width=\"800\" height=\"173\" loading=\"lazy\" title=\"\" class=\"hatena-fotolife\" itemprop=\"image\"\/><\/span><\/p>\n<ol>\n<li>PHP-FPM\u304c\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u51fa\u529b\u3057\u3001Fluent Bit\u304c\u53ce\u96c6\u3059\u308b<\/li>\n<li>Fluent Bit\u304c\u8907\u6570\u884c\u30ed\u30b0\u30921\u3064\u306b\u307e\u3068\u3081\u3001\u6b63\u898f\u8868\u73fe\u3067\u30d1\u30fc\u30b9\u3057\u3066\u69cb\u9020\u5316\u3059\u308b<\/li>\n<li>\u69cb\u9020\u5316\u3057\u305f\u30ed\u30b0\u3092OpenTelemetry Collector\u306b\u9001\u4fe1\u3059\u308b<\/li>\n<li>OpenTelemetry Collector\u304c\u30ed\u30b0\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u751f\u6210\u3059\u308b<\/li>\n<li>Loki\u3068Prometheus\u306b\u305d\u308c\u305e\u308c\u30ed\u30b0\u3068\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4fdd\u5b58\u3059\u308b<\/li>\n<\/ol>\n<p>\u4fdd\u5b58\u3057\u305f\u30ed\u30b0\u3068\u30e1\u30c8\u30ea\u30af\u30b9\u306fGrafana\u3067\u53ef\u8996\u5316\u3055\u308c\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4e0a\u3067\u5206\u6790\u3084\u76e3\u8996\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001Fluent Bit\u3092\u4f7f\u3063\u3066PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u69cb\u9020\u5316\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u5927\u304d\u304f\u5206\u3051\u30662\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n1\u3064\u76ee\u306f\u3001\u8907\u6570\u884c\u306b\u308f\u305f\u308b\u30b9\u30ed\u30fc\u30ed\u30b0\u30921\u3064\u306e\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u5358\u4f4d\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u3002<br \/>\n2\u3064\u76ee\u306f\u3001\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u304b\u3089\u5404\u5c5e\u6027\u3092\u62bd\u51fa\u3057\u3001JSON\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3067\u3059\u3002<br \/>\n\u59cb\u3081\u306b\u30b9\u30ed\u30fc\u30ed\u30b0\u30921\u3064\u306e\u51fa\u6765\u4e8b\u3068\u3057\u3066\u6271\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001 \u5f8c\u7d9a\u306e\u51e6\u7406\uff08\u5c5e\u6027\u62bd\u51fa\u3084\u30e1\u30c8\u30ea\u30af\u30b9\u5316\uff09\u3092\u884c\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Fluent Bit\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306e<a target=\"_blank\" href=\"https:\/\/github.com\/ynkt\/php-fpm-log-observe-sample\/tree\/main\/fluent-bit\">fluent-bit<\/a>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 id=\"\u8907\u6570\u884c\u306e\u30ed\u30b0\u3092\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u5358\u4f4d\u306b\u307e\u3068\u3081\u308b\">\u8907\u6570\u884c\u306e\u30ed\u30b0\u3092\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u5358\u4f4d\u306b\u307e\u3068\u3081\u308b<\/h2>\n<p>\u524d\u8ff0\u306e\u901a\u308aPHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u306f1\u3064\u306e\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u8907\u6570\u884c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3057\u305f\u304c\u3063\u3066\u3001\u307e\u305a\u306f\u300c\u3069\u3053\u304b\u3089\u3069\u3053\u307e\u3067\u304c1\u3064\u306e\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u304b\u300d\u3092\u5224\u5225\u3057\u3001\u307e\u3068\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4f8b\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b9\u30ed\u30fc\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"code log\" data-lang=\"log\" data-unlink=\"\">[19-Oct-2025 03:22:25]  [pool www] pid 8\nscript_filename = \/home\/www\/php\/scripts\/simulate_slow_response_2.php\n[0x00007fb2e26131b0] sleep() \/home\/www\/php\/scripts\/include\/SlowHelper.php:10\n[0x00007fb2e2613160] doSleep() \/home\/www\/php\/scripts\/include\/Worker.php:13\n[0x00007fb2e26130f0] process() \/home\/www\/php\/scripts\/include\/SlowSimulator.php:13\n[0x00007fb2e2613080] run() \/home\/www\/php\/scripts\/simulate_slow_response_2.php:8\n\n[19-Oct-2025 03:34:37]  [pool www] pid 7\n...<\/pre>\n<p>PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u306f<code>[timestamp] [pool www] pid xxx<\/code>\u306e\u5f62\u5f0f\u3067\u59cb\u307e\u308a\u307e\u3059\u3002\u3053\u306e\u884c\u30921\u884c\u76ee\u3068\u3057\u3066\u3001\u300c\u6b21\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u304c\u59cb\u307e\u308b\u307e\u3067\u306e\u884c\u300d\u30921\u3064\u306e\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306fFluent Bit\u3067<code>multiline.parser<\/code>\u3092\u5229\u7528\u3057\u3066\u3001\u30b9\u30ed\u30fc\u30ed\u30b0\u30921\u3064\u306e\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u306b\u307e\u3068\u3081\u308b\u4f8b\u3067\u3059\u3002<\/p>\n<pre class=\"code lang-yaml\" data-lang=\"yaml\" data-unlink=\"\"><span class=\"synIdentifier\">pipeline<\/span><span class=\"synSpecial\">:<\/span>\n \n  <span class=\"synIdentifier\">inputs<\/span><span class=\"synSpecial\">:<\/span>\n   \n    <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">name<\/span><span class=\"synSpecial\">:<\/span> tail\n      <span class=\"synIdentifier\">path<\/span><span class=\"synSpecial\">:<\/span> \/var\/log\/php-fpm\/slow.log\n      <span class=\"synIdentifier\">tag<\/span><span class=\"synSpecial\">:<\/span> php.slow\n     \n      <span class=\"synIdentifier\">multiline.parser<\/span><span class=\"synSpecial\">:<\/span> php_slow\n\n\n<span class=\"synIdentifier\">multiline_parsers<\/span><span class=\"synSpecial\">:<\/span>\n  <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">name<\/span><span class=\"synSpecial\">:<\/span> php_slow\n    <span class=\"synIdentifier\">type<\/span><span class=\"synSpecial\">:<\/span> regex\n    <span class=\"synIdentifier\">rules<\/span><span class=\"synSpecial\">:<\/span>\n      <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">state<\/span><span class=\"synSpecial\">:<\/span> start_state\n        <span class=\"synIdentifier\">regex<\/span><span class=\"synSpecial\">:<\/span> <span class=\"synConstant\">'^\\[\\d{2}-[A-Za-z]{3}-\\d{4} \\d{2}:\\d{2}:\\d{2}\\]  \\[pool www\\] pid \\d+'<\/span>\n        <span class=\"synIdentifier\">next_state<\/span><span class=\"synSpecial\">:<\/span> script_filename\n      <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">state<\/span><span class=\"synSpecial\">:<\/span> script_filename\n        <span class=\"synIdentifier\">regex<\/span><span class=\"synSpecial\">:<\/span> <span class=\"synConstant\">'^script_filename=\"<\/span>\n        <span class=\"synIdentifier\">next_state<\/span><span class=\"synSpecial\">:<\/span> backtrace\n      <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">state<\/span><span class=\"synSpecial\">:<\/span> backtrace\n        <span class=\"synIdentifier\">regex<\/span><span class=\"synSpecial\">:<\/span> <span class=\"synConstant\">\"^\\[0x[0-9a-f]+\\]'<\/span>\n        <span class=\"synIdentifier\">next_state<\/span><span class=\"synSpecial\">:<\/span> backtrace\n<\/pre>\n<h2 id=\"\u30ed\u30b0\u306e\u5c5e\u6027\u3092\u62bd\u51fa\u3057\u3066JSON\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\">\u30ed\u30b0\u306e\u5c5e\u6027\u3092\u62bd\u51fa\u3057\u3066JSON\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b<\/h2>\n<p>\u8907\u6570\u884c\u306e\u30ed\u30b0\u30921\u3064\u306e\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u3068\u3057\u3066\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u6b21\u306f\u30ed\u30b0\u3092\u69cb\u6210\u3057\u3066\u3044\u308b\u5c5e\u6027\u3092\u62bd\u51fa\u3057JSON\u5f62\u5f0f\u306b\u5909\u63db\u3057\u307e\u3059\u3002<br \/>\n\u4f8b\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"code json lines\" data-lang=\"json lines\" data-unlink=\"\">{\n  \"timestamp\": \"2025-10-19T03:22:25.000Z\",\n  \"pid\": \"8\",\n  \"script_filename\": \"\/home\/www\/php\/scripts\/simulate_slow_response_2.php\",\n  \"backtrace\": {\n    \"#0\": \"sleep() \/home\/www\/php\/scripts\/include\/SlowHelper.php:10\",\n    \"#1\": \"doSleep() \/home\/www\/php\/scripts\/include\/Worker.php:13\",\n    \"#2\": \"process() \/home\/www\/php\/scripts\/include\/SlowSimulator.php:13\",\n    \"#3\": \"run() \/home\/www\/php\/scripts\/simulate_slow_response_2.php:8\"\n  },\n}<\/pre>\n<h3 id=\"\u6b63\u898f\u8868\u73fe\u3067\u5c5e\u6027\u3092\u62bd\u51fa\u3059\u308b\">\u6b63\u898f\u8868\u73fe\u3067\u5c5e\u6027\u3092\u62bd\u51fa\u3059\u308b<\/h3>\n<p>Fluent Bit\u3084OpenTelemetry Collector\u306eparser\u8a2d\u5b9a\u3067\u3001pid\u3084script_filename\u306a\u3069\u3092\u62bd\u51fa\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306fFluent Bit\u306b\u3066\u69cb\u9020\u5316\u3092\u884c\u3046\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"code lang-yaml\" data-lang=\"yaml\" data-unlink=\"\"><span class=\"synIdentifier\">pipeline<\/span><span class=\"synSpecial\">:<\/span>\n  <span class=\"synIdentifier\">inputs<\/span><span class=\"synSpecial\">:<\/span>\n    <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">name<\/span><span class=\"synSpecial\">:<\/span> tail\n      ...\n      <span class=\"synIdentifier\">multiline.parser<\/span><span class=\"synSpecial\">:<\/span> php_slow\n\n     \n      <span class=\"synIdentifier\">processors<\/span><span class=\"synSpecial\">:<\/span>\n        <span class=\"synIdentifier\">logs<\/span><span class=\"synSpecial\">:<\/span>\n         \n          <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">name<\/span><span class=\"synSpecial\">:<\/span> parser\n            <span class=\"synIdentifier\">parser<\/span><span class=\"synSpecial\">:<\/span> php_slow_fields\n            <span class=\"synIdentifier\">key_name<\/span><span class=\"synSpecial\">:<\/span> log\n\n         \n          <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">name<\/span><span class=\"synSpecial\">:<\/span> lua\n            <span class=\"synIdentifier\">script<\/span><span class=\"synSpecial\">:<\/span> filters.lua\n            <span class=\"synIdentifier\">call<\/span><span class=\"synSpecial\">:<\/span> append_backtrace\n\n\n<span class=\"synIdentifier\">parsers<\/span><span class=\"synSpecial\">:<\/span>\n  <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">name<\/span><span class=\"synSpecial\">:<\/span> php_slow_fields\n    <span class=\"synIdentifier\">format<\/span><span class=\"synSpecial\">:<\/span> regex\n    <span class=\"synIdentifier\">regex<\/span><span class=\"synSpecial\">:<\/span> <span class=\"synConstant\">'^\\[(?<timestamp>\\d{2}-[A-Za-z]{3}-\\d{4} \\d{2}:\\d{2}:\\d{2})\\]  \\[pool www\\] pid (?<pid>\\d+)\\nscript_filename = (?<script_filename>[^\\s]+)'<\/script_filename><\/pid><\/timestamp><\/span>\n    <span class=\"synIdentifier\">time_key<\/span><span class=\"synSpecial\">:<\/span> timestamp\n    <span class=\"synIdentifier\">time_format<\/span><span class=\"synSpecial\">:<\/span> <span class=\"synConstant\">'%d-%b-%Y %H:%M:%S'<\/span>\n<\/pre>\n<h3 id=\"Lua\u30d5\u30a3\u30eb\u30bf\u3067\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u90e8\u5206\u3092\u62bd\u51fa\u3059\u308b\">Lua\u30d5\u30a3\u30eb\u30bf\u3067\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u90e8\u5206\u3092\u62bd\u51fa\u3059\u308b<\/h3>\n\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u90e8\u5206\u306f\u8981\u7d20\u306e\u6570\u304c\u30ed\u30b0\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u6b63\u898f\u8868\u73fe\u3067\u306e\u62bd\u51fa\u304c\u96e3\u3057\u3044\u3067\u3059\u3002\n\u306a\u306e\u3067\u4eca\u56de\u306fLua\u30d5\u30a3\u30eb\u30bf\u3092\u4f7f\u3063\u3066\u30d1\u30fc\u30b9\u5f8c\u306b\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u90e8\u5206\u3060\u3051\u8ffd\u52a0\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\n\u5c1a\u3001\u4eca\u56de\u306f\u30b5\u30f3\u30d7\u30eb\u3068\u3044\u3046\u3053\u3068\u3067\u5b9f\u9a13\u7684\u306a\u8981\u7d20\u3068\u898b\u6804\u3048\u306e\u826f\u3055\u3092\u512a\u5148\u3057\u3066Lua\u30d5\u30a3\u30eb\u30bf\u3092\u4f7f\u3063\u3066\u30d1\u30fc\u30b9\u307e\u3067\u884c\u3044\u307e\u3057\u305f\u304c\u3001\n\u5b9f\u969b\u306b\u904b\u7528\u3059\u308b\u5834\u5408\u306f\u4fdd\u5b88\u6027\u306e\u89b3\u70b9\u304b\u3089\u5225\u306e\u5bfe\u5fdc\u3092\u691c\u8a0e\u3057\u305f\u65b9\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\n<pre class=\"code lang-lua\" data-lang=\"lua\" data-unlink=\"\"><span class=\"synIdentifier\">function<\/span> append_backtrace(tag, timestamp, record)\n    <span class=\"synStatement\">local<\/span> msg = record[<span class=\"synConstant\">\"log\"<\/span>]\n    <span class=\"synStatement\">if<\/span> <span class=\"synStatement\">not<\/span> msg <span class=\"synStatement\">then<\/span>\n        <span class=\"synStatement\">return<\/span> <span class=\"synConstant\">0<\/span>, timestamp, record\n    <span class=\"synStatement\">end<\/span>\n\n    <span class=\"synStatement\">local<\/span> stack_obj = <span class=\"synType\">{}<\/span>\n    <span class=\"synStatement\">local<\/span> i = <span class=\"synConstant\">0<\/span>\n    <span class=\"synStatement\">for<\/span> line <span class=\"synStatement\">in<\/span> msg:gmatch(<span class=\"synConstant\">\"%[0x[^<\/span><span class=\"synSpecial\">\\n<\/span><span class=\"synConstant\">]+<\/span><span class=\"synSpecial\">\\n<\/span><span class=\"synConstant\">\"<\/span>) <span class=\"synStatement\">do<\/span>\n        <span class=\"synStatement\">local<\/span> frame = line:match(<span class=\"synConstant\">\"%]%s*(.-)%s*$\"<\/span>)\n        <span class=\"synStatement\">if<\/span> frame <span class=\"synStatement\">then<\/span>\n        <span class=\"synStatement\">local<\/span> key = <span class=\"synConstant\">\"#\"<\/span> .. <span class=\"synIdentifier\">tostring<\/span>(i)\n        stack_obj[key] = frame\n        i = i + <span class=\"synConstant\">1<\/span>\n        <span class=\"synStatement\">end<\/span>\n    <span class=\"synStatement\">end<\/span>\n    record[<span class=\"synConstant\">\"backtrace\"<\/span>] = stack_obj\n\n    <span class=\"synStatement\">return<\/span> <span class=\"synConstant\">2<\/span>, timestamp, record\n<span class=\"synIdentifier\">end<\/span>\n<\/pre>\n\u3053\u308c\u3089\u306e\u51e6\u7406\u3092\u7d4c\u3066\u3001PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u5404\u5c5e\u6027\u3092\u62bd\u51fa\u3057\u305fJSON\u5f62\u5f0f\u306e\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u3068\u3057\u3066\u6271\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\n<h2 id=\"\u69cb\u9020\u5316\u30ed\u30b0\u3092\u6d3b\u7528\u3057\u3066\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\">\u69cb\u9020\u5316\u30ed\u30b0\u3092\u6d3b\u7528\u3057\u3066\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n\u69cb\u9020\u5316\u3057\u305f\u30ed\u30b0\u3092Loki\u306b\u4fdd\u5b58\u3057\u305f\u5f8c\u3001Grafana\u306e<a target=\"_blank\" href=\"https:\/\/grafana.com\/docs\/loki\/latest\/query\/\">LogQL<\/a>\u3092\u4f7f\u3063\u3066\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\n\u4f8b\u3048\u3070\u3001\u7279\u5b9a\u306e\u6642\u9593\u5e2f\u306b\u304a\u3051\u308b\u30b9\u30ed\u30fc\u30ed\u30b0\u306e\u767a\u751f\u4ef6\u6570\u3092\u8abf\u3079\u305f\u308a\u3001\u5c5e\u6027\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\/\u30b0\u30eb\u30fc\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n\u5b9f\u969b\u306b\u30af\u30a8\u30ea\u3092\u66f8\u304f\u969b\u306f\u3001\u30b9\u30ed\u30fc\u30ed\u30b0\u81ea\u4f53\u306e\u5c5e\u6027\u4ee5\u5916\u306b\u3082\u5404\u7a2e\u30e1\u30bf\u30c7\u30fc\u30bf\u3084\u30e9\u30d9\u30eb\u3092\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002\n\u30af\u30a8\u30ea\u4e2d\u3067\u5229\u7528\u3057\u3066\u3044\u308b<code>service_name<\/code>\u3084<code>topic<\/code>\u306b\u3064\u3044\u3066\u306f<a target=\"_blank\" href=\"https:\/\/github.com\/ynkt\/php-fpm-log-observe-sample\/tree\/main\/fluent-bit\/fluent-bit.yaml\">fluent-bit.yaml<\/a>\u306b\u3066\u4ed8\u4e0e\u3057\u3066\u3044\u308b\u306e\u3067\u3001\n\u62bd\u51fa\u3057\u305f\u5c5e\u6027\u4ee5\u5916\u306e\u60c5\u5831\u3092\u4ed8\u4e0e\u3057\u305f\u3044\u5834\u5408\u306f\u305d\u3061\u3089\u3082\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<pre class=\"code logql\" data-lang=\"logql\" data-unlink=\"\"># \u6642\u9593\u5e2f\u5225\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u4ef6\u6570\ncount_over_time({service_name=\"php-fpm\"} | topic=`php-fpm.slow` [$__auto])\n\n# \u6307\u5b9a\u3057\u305f\u6642\u9593\u5e2f\u306b\u304a\u3051\u308b\u30b9\u30ed\u30fc\u30ed\u30b0\u306e\u5408\u8a08\u4ef6\u6570\nsum(count_over_time({service_name=\"php-fpm\"} | topic=`php-fpm.slow` [$__auto]))\n\n# script_filename\u3054\u3068\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u4ef6\u6570\nsum by(script_filename) (count_over_time({service_name=\"php-fpm\"} | topic=`php-fpm.slow` [$__auto]))<\/pre>\nLogQL\u3092\u99c6\u4f7f\u3059\u308b\u3053\u3068\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3082\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\n\u672c\u74b0\u5883\u306f\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u5b9f\u969b\u306e\u904b\u7528\u306b\u304a\u3044\u3066\u3082\u3053\u306e\u3088\u3046\u306a\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306f\u969c\u5bb3\u8abf\u67fb\u3084\u6027\u80fd\u5206\u6790\u306b\u5f79\u7acb\u3064\u3067\u3057\u3087\u3046\u3002\n\u69cb\u9020\u5316\u30ed\u30b0\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30b0\u306e\u53ef\u89b3\u6e2c\u6027\u3092\u5927\u304d\u304f\u5411\u4e0a\u3067\u304d\u307e\u3059\u3002\n<span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><img decoding=\"async\" src=\"https:\/\/cdn-ak.f.st-hatena.com\/images\/fotolife\/c\/cybozuinsideout\/20251020\/20251020170007.png\" alt=\"dashboard\" width=\"800\" height=\"416\" loading=\"lazy\" title=\"\" class=\"hatena-fotolife\" itemprop=\"image\"\/><\/span>\n\u3055\u3066\u3001\u524d\u7ae0\u307e\u3067\u3067\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u69cb\u9020\u5316\u3057\u904b\u7528\u3067\u6d3b\u7528\u3067\u304d\u308b\u3088\u3046\u306a\u4e00\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\n\u672c\u7ae0\u3067\u306f\u3001\u3055\u3089\u306b\u4e00\u6b69\u9032\u3093\u3067\u69cb\u9020\u5316\u30ed\u30b0\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\n&#8230;\u7d39\u4ecb\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u4e00\u5ea6\u7acb\u3061\u6b62\u307e\u3063\u3066\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002\n\u69cb\u9020\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u30ed\u30b0\u306b\u6bd4\u3079\u3066\u53ef\u89b3\u6e2c\u6027\u304c\u5927\u304d\u304f\u5411\u4e0a\u3057\u305f\u4eca\u3001\u679c\u305f\u3057\u3066\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u5909\u63db\u3059\u308b\u5fc5\u8981\u306f\u3042\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\n\u69cb\u9020\u5316\u30ed\u30b0\u3060\u3051\u3067\u3082\u89b3\u6e2c\u6027\u306f\u5927\u304d\u304f\u5411\u4e0a\u3057\u307e\u3059\u304c\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u3059\u308b\u3053\u3068\u3067\u300c\u30a2\u30e9\u30fc\u30c8\u306e\u4ed5\u7d44\u307f\u3068\u306e\u7d50\u5408\u304c\u5bb9\u6613\u306b\u306a\u308b\u300d\u300c\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u3092\u5bfe\u8c61\u306b\u9ad8\u901f\u306b\u96c6\u8a08\u3067\u304d\u308b\u300d\u3068\u3044\u3046\u5229\u70b9\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\n\u5b9f\u969b\u306b\u904b\u7528\u3059\u308b\u969b\u306b\u5e38\u306b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u773a\u3081\u3066\u3044\u308b\u306a\u3093\u3066\u3053\u3068\u306f\u7a00\u3067\u3001\u591a\u304f\u306e\u5834\u5408\u306f\u30a2\u30e9\u30fc\u30c8\u3092\u53d7\u3051\u53d6\u3063\u3066\u521d\u3081\u3066\u7570\u5e38\u306b\u6c17\u3065\u304f\u3053\u3068\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u3002\n\u307e\u305f\u30ed\u30b0\u306f\u8a73\u7d30\u306a\u60c5\u5831\u3092\u6b8b\u305b\u308b\u4e00\u65b9\u3067\u3001\u5927\u898f\u6a21\u306a\u30b5\u30fc\u30d3\u30b9\u3084\u9577\u671f\u9593\u5206\u306e\u30ed\u30b0\u304b\u3089\u96c6\u8a08\u3092\u3059\u308b\u5834\u5408\u306a\u3069\u81a8\u5927\u306a\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u4e0a\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\n\u6b63\u76f4\u306a\u3068\u3053\u308d\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u3057\u3066\u3082\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u4f8b\u3048\u3070\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u5185\u5bb9\u306f\u307b\u307c\u5909\u308f\u308a\u307e\u305b\u3093\u3002\n\u3057\u304b\u3057\u3001\u30ed\u30b0\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\u4ed5\u7d44\u307f\u3092\u6301\u3063\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u5c06\u6765\u7684\u306b\u3088\u308a\u67d4\u8edf\u306a\u76e3\u8996\u3084\u5206\u6790\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\n<h2 id=\"\u69cb\u9020\u5316\u30ed\u30b0\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u751f\u6210\u3059\u308b\">\u69cb\u9020\u5316\u30ed\u30b0\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u751f\u6210\u3059\u308b<\/h2>\nFluent Bit\u3067\u69cb\u9020\u5316\u3057\u305f\u30ed\u30b0\u3092OpenTelemetry Collector\u306b\u9001\u4fe1\u3057\u3001<code>Connector<\/code>\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u751f\u6210\u3057\u307e\u3059\u3002\n\u4eca\u56de\u306f<code>Connector<\/code>\u306e\u4e2d\u3067\u3082<a target=\"_blank\" href=\"https:\/\/github.com\/open-telemetry\/opentelemetry-collector-contrib\/tree\/main\/connector\/signaltometricsconnector\">Signal to metrics connector<\/a>\u3092\u4f7f\u3063\u3066\u30011\u3064\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u306b\u3064\u304d1\u3064\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\n\u307e\u305f\u3001\u7d5e\u308a\u8fbc\u307f\u7528\u306b<code>script_filename<\/code>\u5c5e\u6027\u3092\u30e9\u30d9\u30eb\u3068\u3057\u3066\u4ed8\u4e0e\u3057\u3066\u3044\u307e\u3059\u3002\n<pre class=\"code lang-yaml\" data-lang=\"yaml\" data-unlink=\"\">\n\n\n<span class=\"synIdentifier\">connectors<\/span><span class=\"synSpecial\">:<\/span>\n \n  <span class=\"synIdentifier\">signaltometrics\/php_fpm_slow_log<\/span><span class=\"synSpecial\">:<\/span>\n    <span class=\"synIdentifier\">logs<\/span><span class=\"synSpecial\">:<\/span>\n     \n      <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">name<\/span><span class=\"synSpecial\">:<\/span> php_fpm_slow_log_count\n        <span class=\"synIdentifier\">description<\/span><span class=\"synSpecial\">:<\/span> PHP-FPM slow logs count.\n        <span class=\"synIdentifier\">conditions<\/span><span class=\"synSpecial\">:<\/span>\n          <span class=\"synStatement\">- <\/span>log.attributes[\"topic\"] == <span class=\"synConstant\">\"php-fpm.slow\"<\/span>\n        <span class=\"synIdentifier\">attributes<\/span><span class=\"synSpecial\">:<\/span>\n          <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">key<\/span><span class=\"synSpecial\">:<\/span> script_filename\n        <span class=\"synIdentifier\">sum<\/span><span class=\"synSpecial\">:<\/span>\n          <span class=\"synIdentifier\">value<\/span><span class=\"synSpecial\">:<\/span> <span class=\"synConstant\">\"1\"<\/span>\n\n<span class=\"synIdentifier\">processors<\/span><span class=\"synSpecial\">:<\/span>\n \n  <span class=\"synIdentifier\">transform\/php_fpm_slow_log<\/span><span class=\"synSpecial\">:<\/span>\n    <span class=\"synIdentifier\">error_mode<\/span><span class=\"synSpecial\">:<\/span> ignore\n    <span class=\"synIdentifier\">log_statements<\/span><span class=\"synSpecial\">:<\/span>\n      <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">conditions<\/span><span class=\"synSpecial\">:<\/span>\n          <span class=\"synStatement\">- <\/span>log.attributes[\"topic\"] == <span class=\"synConstant\">\"php-fpm.slow\"<\/span>\n      <span class=\"synStatement\">- <\/span><span class=\"synIdentifier\">statements<\/span><span class=\"synSpecial\">:<\/span>\n         \n         \n         \n          <span class=\"synStatement\">- <\/span>set(log.attributes[\"script_filename\"], log.body[\"script_filename\"])\n<\/pre>\nOpenTelemetry Collector\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u5168\u4f53\u306b\u3064\u3044\u3066\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306e<a target=\"_blank\" href=\"https:\/\/github.com\/ynkt\/php-fpm-log-observe-sample\/blob\/main\/otelcol\/otelcol-config.yaml\">otelcol-config.yaml<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\n\u4f5c\u6210\u3057\u305f\u30e1\u30c8\u30ea\u30af\u30b9\u306fPrometheus\u306b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u3001Grafana\u3067\u53ef\u8996\u5316\u3057\u307e\u3059\u3002\n<h2 id=\"\u4f5c\u6210\u3057\u305f\u30e1\u30c8\u30ea\u30af\u30b9\u3068\u69cb\u9020\u5316\u30ed\u30b0\u3092\u4f75\u7528\u3057\u3066\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\">\u4f5c\u6210\u3057\u305f\u30e1\u30c8\u30ea\u30af\u30b9\u3068\u69cb\u9020\u5316\u30ed\u30b0\u3092\u4f75\u7528\u3057\u3066\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n\u4f5c\u6210\u3057\u305f\u30e1\u30c8\u30ea\u30af\u30b9\u3092Prometheus\u306b\u4fdd\u5b58\u3057\u3001Grafana\u304b\u3089<a target=\"_blank\" href=\"https:\/\/prometheus.io\/docs\/prometheus\/latest\/querying\/basics\/\">PromQL<\/a>\u3067\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\n\u69cb\u9020\u5316\u30ed\u30b0\u306e\u3068\u304d\u3068\u540c\u69d8\u306b\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u3067\u3082\u30e9\u30d9\u30eb\u3092\u6d3b\u7528\u3057\u3066\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3084\u30b0\u30eb\u30fc\u30d4\u30f3\u30b0\u304c\u53ef\u80fd\u3067\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4e0a\u3067\u5206\u6790\u3084\u76e3\u8996\u304c\u3067\u304d\u307e\u3059\u3002\n<pre class=\"code promq\" data-lang=\"promq\" data-unlink=\"\"># \u6642\u9593\u5e2f\u5225\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u4ef6\u6570\ncount_over_time(php_fpm_slow_log_count_total[1m])\n\n# \u6307\u5b9a\u3057\u305f\u6642\u9593\u5e2f\u306b\u304a\u3051\u308b\u30b9\u30ed\u30fc\u30ed\u30b0\u306e\u5408\u8a08\u4ef6\u6570\nsum(count_over_time(php_fpm_slow_log_count_total[1m]))\n\n# script_filename\u3054\u3068\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u4ef6\u6570\nsum by(script_filename) (count_over_time(php_fpm_slow_log_count_total[1m]))<\/pre>\n\u524d\u8ff0\u3057\u305f\u901a\u308a\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u5909\u63db\u3057\u305f\u304b\u3089\u3068\u3044\u3063\u3066\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u5185\u5bb9\u306f\u307b\u307c\u5909\u308f\u308a\u307e\u305b\u3093\u3002\n\u5b9f\u969b\u306b\u30b5\u30f3\u30d7\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u30822\u7a2e\u985e\u7528\u610f\u3057\u3066\u304a\u308a\u30011\u3064\u306f\u69cb\u9020\u5316\u30ed\u30b0\u306e\u307f\u4f7f\u3063\u305f\u3082\u306e\u3001\u3082\u30461\u3064\u306f\u30e1\u30c8\u30ea\u30af\u30b9\u3082\u6d3b\u7528\u3057\u305f\u3082\u306e\u3067\u3001\u9055\u3044\u306f\u307b\u3068\u3093\u3069\u3042\u308a\u307e\u305b\u3093\u3002\n\u3057\u304b\u3057\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4f5c\u6210\u30fb\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u30a2\u30e9\u30fc\u30c8\u8a2d\u5b9a\u3084\u9577\u671f\u9593\u5206\u306e\u96c6\u8a08\u304c\u5bb9\u6613\u306b\u306a\u308a\u3001 \u30ed\u30b0\u3068\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3088\u308a\u67d4\u8edf\u306a\u904b\u7528\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\n\u4eca\u56de\u306e\u53d6\u308a\u7d44\u307f\u3067\u306f\u3001PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u69cb\u9020\u5316\u3057\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u3067\u53ef\u89b3\u6e2c\u6027\u306e\u5411\u4e0a\u3092\u8a66\u307f\u307e\u3057\u305f\u3002\n\u984c\u6750\u306fPHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3067\u3057\u305f\u304c\u3001 \u540c\u3058\u8003\u3048\u65b9\u306fPHP\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3084MySQL\u306e\u30b9\u30ed\u30fc\u30af\u30a8\u30ea\u30ed\u30b0\u306a\u3069\u3001\u4ed6\u306e\u30ed\u30b0\u306b\u3082\u5fdc\u7528\u3067\u304d\u307e\u3059\u3002\n\u300c\u30ed\u30b0\u3092\u69cb\u9020\u5316\u3059\u308b\u300d\u300c\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u5909\u63db\u3059\u308b\u300d\u3068\u3044\u3046\u6d41\u308c\u81ea\u4f53\u306f\u3001\u591a\u304f\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u5171\u901a\u3059\u308b\u89b3\u6e2c\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3042\u308a\u3001\u30c4\u30fc\u30eb\u3084\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u9055\u3063\u3066\u3082\u672c\u8cea\u306f\u5909\u308f\u3089\u306a\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002\n\u672c\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u69cb\u6210\u3084\u8a2d\u5b9a\u306f\u3042\u304f\u307e\u3067\u4e00\u4f8b\u3067\u3059\u304c\u3001 \u91cd\u8981\u306a\u306e\u306f\u300c\u904b\u7528\u3092\u81ea\u5206\u3054\u3068\u3068\u3057\u3066\u6349\u3048\u3001\u89b3\u6e2c\u306e\u4ed5\u7d44\u307f\u3092\u7406\u89e3\u3059\u308b\u300d\u3053\u3068\u3060\u3068\u601d\u3044\u307e\u3059\u3002\n\u30ed\u30b0\u306e\u69cb\u9020\u5316\u3084\u30e1\u30c8\u30ea\u30af\u30b9\u5316\u306f\u305d\u306e\u7b2c\u4e00\u6b69\u306b\u3059\u304e\u307e\u305b\u3093\u3002\n\u672c\u8a18\u4e8b\u304c\u30b5\u30fc\u30d3\u30b9\u306e\u53ef\u89b3\u6e2c\u6027\u5411\u4e0a\u306b\u53d6\u308a\u7d44\u3080\u4e00\u52a9\u3068\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002\n<\/div>\n<script>(function(d, s, id) {\n  var js, fjs = d.getElementsByTagName(s)[0];\n  if (d.getElementById(id)) return;\n  js = d.createElement(s); js.id = id;\n  js.src = \"\/\/connect.facebook.net\/ja_JP\/sdk.js#xfbml=1&version=v2.3\";\n  fjs.parentNode.insertBefore(js, fjs);\n}(document, 'script', 'facebook-jssdk'));<\/script><br \/>\n<br \/>\n<br \/><a href=\"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000\">\u5143\u306e\u8a18\u4e8b\u3092\u78ba\u8a8d\u3059\u308b <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u3053\u306e\u8a18\u4e8b\u306f\u3001CYBOZU SUMMER BLOG FES &#8217;25\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u3053\u3093\u306b\u3061\u306f\u3001\u30b5\u30a4\u30dc\u30a6\u30ba Garoon\u958b\u767a Tsukimi\u30c1\u30fc\u30e0\u6240\u5c5e\u306e\u4e2d\u7530\u3067\u3059\u3002 \u672c\u8a18\u4e8b\u306f\u3001\u958b\u767a\u30c1\u30fc\u30e0\u306e\u4eba\u9593\u304c\u30b5\u30fc\u30d3\u30b9\u904b\u7528\u306e\u4ed5\u7d44\u307f\u3084 [&hellip;]","protected":false},"author":1,"featured_media":10248,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10247","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-company-tec"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u306f\u3001CYBOZU SUMMER BLOG FES &#8217;25\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u3053\u3093\u306b\u3061\u306f\u3001\u30b5\u30a4\u30dc\u30a6\u30ba Garoon\u958b\u767a Tsukimi\u30c1\u30fc\u30e0\u6240\u5c5e\u306e\u4e2d\u7530\u3067\u3059\u3002 \u672c\u8a18\u4e8b\u306f\u3001\u958b\u767a\u30c1\u30fc\u30e0\u306e\u4eba\u9593\u304c\u30b5\u30fc\u30d3\u30b9\u904b\u7528\u306e\u4ed5\u7d44\u307f\u3084 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000\" \/>\n<meta property=\"og:site_name\" content=\"\u30dd\u30b1\u30b3\u30f3\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-20T09:05:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1300\" \/>\n\t<meta property=\"og:image:height\" content=\"683\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"info@pokecon.jp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"info@pokecon.jp\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/20\\\/170000#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/10247\\\/\"},\"author\":{\"name\":\"info@pokecon.jp\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#\\\/schema\\\/person\\\/16c9f07b1ba984d165d9aee259bda997\"},\"headline\":\"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- &#8211; Cybozu Inside Out\",\"datePublished\":\"2025-10-20T09:05:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/10247\\\/\"},\"wordCount\":114,\"image\":{\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/20\\\/170000#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png\",\"articleSection\":[\"\u4f01\u696d\u30c6\u30c3\u30af\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/10247\\\/\",\"url\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/20\\\/170000\",\"name\":\"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/20\\\/170000#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/20\\\/170000#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png\",\"datePublished\":\"2025-10-20T09:05:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#\\\/schema\\\/person\\\/16c9f07b1ba984d165d9aee259bda997\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/20\\\/170000#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/20\\\/170000\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/20\\\/170000#primaryimage\",\"url\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png\",\"contentUrl\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png\",\"width\":1300,\"height\":683},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/20\\\/170000#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- &#8211; Cybozu Inside Out\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#website\",\"url\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/\",\"name\":\"\u30dd\u30b1\u30b3\u30f3\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#\\\/schema\\\/person\\\/16c9f07b1ba984d165d9aee259bda997\",\"name\":\"info@pokecon.jp\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g\",\"caption\":\"info@pokecon.jp\"},\"url\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/author\\\/infopokecon-jp\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000","og_locale":"ja_JP","og_type":"article","og_title":"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3","og_description":"\u3053\u306e\u8a18\u4e8b\u306f\u3001CYBOZU SUMMER BLOG FES &#8217;25\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u3053\u3093\u306b\u3061\u306f\u3001\u30b5\u30a4\u30dc\u30a6\u30ba Garoon\u958b\u767a Tsukimi\u30c1\u30fc\u30e0\u6240\u5c5e\u306e\u4e2d\u7530\u3067\u3059\u3002 \u672c\u8a18\u4e8b\u306f\u3001\u958b\u767a\u30c1\u30fc\u30e0\u306e\u4eba\u9593\u304c\u30b5\u30fc\u30d3\u30b9\u904b\u7528\u306e\u4ed5\u7d44\u307f\u3084 [&hellip;]","og_url":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000","og_site_name":"\u30dd\u30b1\u30b3\u30f3","article_published_time":"2025-10-20T09:05:59+00:00","og_image":[{"width":1300,"height":683,"url":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png","type":"image\/png"}],"author":"info@pokecon.jp","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"info@pokecon.jp","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000#article","isPartOf":{"@id":"https:\/\/pokecon.jp\/job\/10247\/"},"author":{"name":"info@pokecon.jp","@id":"https:\/\/pokecon.jp\/job\/#\/schema\/person\/16c9f07b1ba984d165d9aee259bda997"},"headline":"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- &#8211; Cybozu Inside Out","datePublished":"2025-10-20T09:05:59+00:00","mainEntityOfPage":{"@id":"https:\/\/pokecon.jp\/job\/10247\/"},"wordCount":114,"image":{"@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000#primaryimage"},"thumbnailUrl":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png","articleSection":["\u4f01\u696d\u30c6\u30c3\u30af"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/pokecon.jp\/job\/10247\/","url":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000","name":"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3","isPartOf":{"@id":"https:\/\/pokecon.jp\/job\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000#primaryimage"},"image":{"@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000#primaryimage"},"thumbnailUrl":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png","datePublished":"2025-10-20T09:05:59+00:00","author":{"@id":"https:\/\/pokecon.jp\/job\/#\/schema\/person\/16c9f07b1ba984d165d9aee259bda997"},"breadcrumb":{"@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000#primaryimage","url":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png","contentUrl":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fc2Fcybozuinsideout2F202510202F20251020.png","width":1300,"height":683},{"@type":"BreadcrumbList","@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/20\/170000#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/pokecon.jp\/job\/"},{"@type":"ListItem","position":2,"name":"\u958b\u767a\u8005\u304c\u904b\u7528\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306e\u7b2c\u4e00\u6b69 -PHP\u306e\u30b9\u30ed\u30fc\u30ed\u30b0\u3092\u89b3\u6e2c\u53ef\u80fd\u306b\u3057\u3066\u307f\u305f- &#8211; Cybozu Inside Out"}]},{"@type":"WebSite","@id":"https:\/\/pokecon.jp\/job\/#website","url":"https:\/\/pokecon.jp\/job\/","name":"\u30dd\u30b1\u30b3\u30f3","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pokecon.jp\/job\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/pokecon.jp\/job\/#\/schema\/person\/16c9f07b1ba984d165d9aee259bda997","name":"info@pokecon.jp","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g","caption":"info@pokecon.jp"},"url":"https:\/\/pokecon.jp\/job\/author\/infopokecon-jp\/"}]}},"_links":{"self":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts\/10247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/comments?post=10247"}],"version-history":[{"count":1,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts\/10247\/revisions"}],"predecessor-version":[{"id":10249,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts\/10247\/revisions\/10249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/media\/10248"}],"wp:attachment":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/media?parent=10247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/categories?post=10247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/tags?post=10247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}