タグ

jqに関するBigFatCatのブックマーク (4)

  • fluentd の監視エージェントを動かしてみた - ようへいの日々精進XP

    はじめに 昨日の Fluentd Casual Talks #3 で @kzk_mover さんが紹介されていた監視エージェントについて触ってみた。以下は @kzk_mover さんの資料。 Treasure Agent Monitoring Service (ベータ) from Treasure Data, Inc. ドキュメント、参考 Fluentdの監視 in_monitor_agent.rb 監視エージェント自体もプラグインなんですな。 設定 td-agent にて試した。td-agent.conf に以下を設定して td-agent を再起動。 <source> type monitor_agent bind 0.0.0.0 port 24220 </source> 以上。 試す ざくっと見た感じだと各種プラグインのステータスを JSON 又は LTSV フォーマットで出力する。

    fluentd の監視エージェントを動かしてみた - ようへいの日々精進XP
  • 15 Docker Tips in 5 Minutes

    An lightning talk I gave at a Twitter HQ meetup about Docker (http://www.docker.io/). The content was extracted from Hands on with Docker, a 3-hour intro-level Docker training class I will be teaching on Monday, Nov 11, 2013. Go to http://handsonwith.com/ to sign up.

    15 Docker Tips in 5 Minutes
    BigFatCat
    BigFatCat 2013/12/14
    graphviz知らなかった。便利: docker images -viz | dot -Tpng -o docker.png && python -m SimpleHTTPServer
  • jqコマンドが実は高性能すぎてビビッた話

    GWが始まりましたが、鎌倉のGWは観光客多すぎて逆に住民はげんなりして外に出なくなる感じです。とはいえ路地まで観光客が攻め込んでくることは少ないので、路地を散歩する分には天気がよくていい感じですね。ちなみに人力車のおにーさんはそういう味のある路地を知り尽くしているので人力車で移動するのはそこそこオススメです(ぼくは乗ったことないけど「こんなところも通るんだ!」ってところで見かけたりします)。 さて、jqというコマンドをご存じでしょうか。 jq jq is a lightweight and flexible command-line JSON processor. と書いてあるとおり、コマンドラインでJSONを扱うことができるコマンドです。で、今まさに仕事で巨大JSONと戦うことが多く、このコマンドが大活躍です。 とはいえ、ぼくの使い方としては「巨大JSONをキレイに整形して表示する」とい

    jqコマンドが実は高性能すぎてビビッた話
  • jq

    jq is a lightweight and flexible command-line JSON processor. jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text. jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine of the same type, and expect

    BigFatCat
    BigFatCat 2013/09/16
    JSONを整形するフィルタ
  • 1