Observability, security, and search solutions — powered by the Elasticsearch Platform.
![Filebeat: Lightweight Log Analysis & Elasticsearch](https://cdn-ak-scissors.b.st-hatena.com/image/square/920e019aaec2913305595d3953ac79066eeffb34/height=288;version=1;width=512/https%3A%2F%2Fwww.elastic.co%2Fstatic-res%2Fimages%2Fsocial_media_default.png)
Linux is unique to Windows in many ways, and writing programs in Linux is no exception. The use of standard out, standard err and null devices is not only a good idea but it’s the law. If your programs are going to be logging information, it is best to follow the destination conventions. This way your programs will work with all of the Mac/Linux tooling and hosted environments. Go has a package in
WARNING: LoggerFS PROJECT HAS BEEN ABANDONED BY ITS MAINTAINER. Applications generate logs for the purposes of debugging, maintenance, analytics and sometimes legal compliance. Logs are important but are too often overlooked until they cause problems (e.g. filling hard disks and crashing production systems). Veteran devops engineers are more proactive about logging and use systems such as Logstash
Linux のシステムコールである write(2) の ドキュメントを読むと Atomic/non-atomic: A write is atomic if the whole amount written in one operation is not interleaved with data from any other process. This is useful when there are multiple writers sending data to a single reader. Applications need to know how large a write request can be expected to be performed atomically. This maximum is called {PIPE_BUF}. This volume of
To debug your program, you may be tempted to pepper your source code with print() calls to display the values of variables as your program runs. It's quick and easy to do this, but the problem is that once you see the values in the variables, that'll give you ideas for more places to put print() calls, then you run the program again to learn where to put other print() calls. The "quick" solution o
はじめに logrotate まわりでちょっとハマったのでメモ. Centos での設定 特定のディレクトリにあるすべてのログファイル( *.log, *_log )に対してログローテーションを行い,事後のファイルをアーカイヴディレクトリに移して gzip しておく,といった感じに処理するため,次のような設定を書きました: /path/to/app/log/*[._]log { daily rotate 1 sharedscripts missingok copytruncate postrotate ARCHIVEDIR=/path/to/log/archives EXT=`date +%Y-%m-%d` for f in $1; do BASENAME=`basename $f`; DESTFILE=$ARCHIVEDIR/$BASENAME.$EXT; mv $f.1 $DESTFI
最近 fluentd というツールのことがたいへんよく話題に上がっており、かく言う自分もささやかながら使用している身なのだが、それはそれとして比較対象に上がってくるツールに scribed というものがある。これがどういうものなのか、話には聞いていてもよくは知らないという人が多いようなので、これもささやかながら触ってみている自分としてはここらで一度まとめておかねばなるまい、と思った次第である。 日本全国に10人くらいはいるかもしれない scribed のヘビーユーザ各位に捧げる。 なお記憶と経験だけを頼りに書き殴るので、意思決定の重要な局面とかで「これこれこういうブログにたごもりすなる者がこのようなことを書き残しており」などと引用するのはくれぐれも避けていただきたい。 また途中から思いっきりビール飲みながら書いたので文章自体の品質にも問題のある可能性がある。 そも scribed とは何か
GC_Utils_Ex::gfPrintLog(String msg); を使う。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く