このエントリーは、GMOアドマーケティング Advent Calendar 2021【12/22】 の記事です。 Overview apacheのerrorlogを簡単にBig QueryにUploadする方法になります。 Reference ErrorLogFormat errorlogのformat変更はapache2.4から対応しています Environment apache2.4 Sample Format ErrorLogFormat "{\"message\":\"%M\",\"error_time\":\"%{cu}t\",\"loglevel\":\"%-m:%l\",\"serverip\":\"%A\",\"host\":\"%a\",\"referer\":\"%-{Referer}i\""}" {"message":"error message","error_ti
![サクッとApacheのerrorlogをJSON化してBigQueryにLoadします - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/be2edc9d09fe45ef8c34138840b98efbb90a08e8/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Fadvent-calendar-ogp-background-7940cd1c8db80a7ec40711d90f43539e.jpg%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9JUUzJTgyJUI1JUUzJTgyJUFGJUUzJTgzJTgzJUUzJTgxJUE4QXBhY2hlJUUzJTgxJUFFZXJyb3Jsb2clRTMlODIlOTJKU09OJUU1JThDJTk2JUUzJTgxJTk3JUUzJTgxJUE2QmlnUXVlcnklRTMlODElQUJMb2FkJUUzJTgxJTk3JUUzJTgxJUJFJUUzJTgxJTk5JnR4dC1jb2xvcj0lMjMzQTNDM0MmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz01YjRiNzA3MDE0MzRhNGYxZjIwNWFhZDcyOWI4MzhmNw%26mark-x%3D142%26mark-y%3D100%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9OTcyJnR4dD0lNDBmaWVtb24mdHh0LWNvbG9yPSUyMzNBM0MzQyZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPTk5YzAwM2VjMjk2NWMyNjMyZWQwNWZkNjI5ZDNjOGU0%26blend-x%3D142%26blend-y%3D455%26blend-mode%3Dnormal%26txt64%3DaW4gR01PIE5JS0tP5qCq5byP5Lya56S-%26txt-width%3D972%26txt-clip%3Dend%252Cellipsis%26txt-color%3D%25233A3C3C%26txt-font%3DHiragino%2520Sans%2520W6%26txt-size%3D36%26txt-x%3D156%26txt-y%3D550%26s%3Dd2b9af219cbdb06d37a3febe936f25a6)