はじめに 昨今では1行につき、1つの JSON を出力する様なログファイル形式も珍しくはありません。 grep しやすい データベース化しやすい これらの理由で各所で多く使われています。僕も仕事で普通に使っているのですが、ある日突然そのログファイルを集計するスクリプトで以下の様なエラーが出始めました。
![grep の「バイナリファイル (標準入力) に一致しました」が出る条件を調べていたらそれは長い旅路の始まりだった。](https://cdn-ak-scissors.b.st-hatena.com/image/square/fbc871670d2ccbde07941cf2c6f86314cf79b1dc/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--ujq8SF0_--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3Agrep%252520%2525E3%252581%2525AE%2525E3%252580%25258C%2525E3%252583%252590%2525E3%252582%2525A4%2525E3%252583%25258A%2525E3%252583%2525AA%2525E3%252583%252595%2525E3%252582%2525A1%2525E3%252582%2525A4%2525E3%252583%2525AB%252520%252528%2525E6%2525A8%252599%2525E6%2525BA%252596%2525E5%252585%2525A5%2525E5%25258A%25259B%252529%252520%2525E3%252581%2525AB%2525E4%2525B8%252580%2525E8%252587%2525B4%2525E3%252581%252597%2525E3%252581%2525BE%2525E3%252581%252597%2525E3%252581%25259F%2525E3%252580%25258D%2525E3%252581%25258C%2525E5%252587%2525BA%2525E3%252582%25258B%2525E6%25259D%2525A1%2525E4%2525BB%2525B6%2525E3%252582%252592%2525E8%2525AA%2525BF%2525E3%252581%2525B9%2525E3%252581%2525A6%2525E3%252581%252584%2525E3%252581%25259F%2525E3%252582%252589%2525E3%252581%25259D%2525E3%252582%25258C%2525E3%252581%2525AF%2525E9%252595%2525B7%2525E3%252581%252584%2525E6%252597%252585%2525E8%2525B7%2525AF%2525E3%252581%2525AE%2525E5%2525A7%25258B%2525E3%252581%2525BE%2525E3%252582%25258A%2525E3%252581%2525A0%2525E3%252581%2525A3%2525E3%252581%25259F%2525E3%252580%252582%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3Amattn%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyL2IwYjA3ZWIzODAuanBlZw%3D%3D%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)
はじめに 昨今では1行につき、1つの JSON を出力する様なログファイル形式も珍しくはありません。 grep しやすい データベース化しやすい これらの理由で各所で多く使われています。僕も仕事で普通に使っているのですが、ある日突然そのログファイルを集計するスクリプトで以下の様なエラーが出始めました。
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
Systemdの仕組みをつかうと、自分で作ったコマンドを簡単にサービスとして登録することができます。 例として、hello worldを延々とファイルに書き込むコマンドをサービス化してみましょう。 1. コマンドを作る /opt/hello.sh というスクリプトを用意します。
SysVinitおぢさんなので。 コレのメモ書き http://www.slideshare.net/enakai/linux-27872553 SysVinit / UpStart systemd の起動処理/操作方法 journald のログ管理 Unit設定の書き方 Tips SysVinit / Upstart BIOS が Grub を読み込んで実行 → Grub が Kernel と初期ラムをメモリに展開して Kernel 実行 → Kernel が init Script を実行 SysVinit/Upstart は /etc/inittabを元に処理を実行。 rc.sysinit (システム初期化 rc (サービス起動) /etc/init.d/(servise) start migetty/prefdm ログイン受付 UpStart RHEL6 にあった 実際にジョブとし
toward making an informed choice, consider the available alternatives Init alternatives to systemd Arguments against systemd - a wiki sub-page containing discussion+links arranged under topical subsections: Breaking promises, immaturity, and (in)stability Scope creep Absurd bugs and responses Conceptional problems Scope creep leads to vulnerabilities Poor design Ignorance of fundamental operating
This blog post is based on a talk I gave on 2014-05-21. For a few years now, GNU/Linux distributions have been migrating away from SysV init and towards a plethora of different new init systems. For users who have been happy with SysV init, this can come as a surprise. SysV init simply works, why are so many distributions moving away? In this blog post, I will try to explain what the problems of S
Since we first proposed systemd for inclusion in the distributions it has been frequently discussed in many forums, mailing lists and conferences. In these discussions one can often hear certain myths about systemd, that are repeated over and over again, but certainly don't gain any truth by constant repetition. Let's take the time to debunk a few of them: Myth: systemd is monolithic. If you build
I’ve done a lot of tweeting about systemd lately. My internal conscience constantly reminds me of John Allspaw saying that twitter is just pretty much perfect for snarky comments (paraphrase). Al Tobey asked me a good question: {% blockquote %} I honestly want to know why you dislike it so much. You clearly know wtf is going on. I haven’t heard a specific technical problem. {% endblockquote %} Fir
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く