Help us understand the problem. What is going on with this article?

LogDNAを使ってみる

More than 1 year has passed since last update.

試した環境

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="17.04 (Zesty Zapus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 17.04"
VERSION_ID="17.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=zesty
UBUNTU_CODENAME=zesty

LogDNA

https://logdna.com/

$ wget -qO /tmp/logdna-cli.deb http://repo.logdna.com/linux/logdna-cli.deb && sudo dpkg -i /tmp/logdna-cli.deb
$ logdna login
Email: xxxxx@gmail.com
Password: *************
Logged in successfully as:xxxxx@gmail.com. Saving credentials to local config.

$ logdna install deb #これすると以下のように出てくるので従う
echo "deb http://repo.logdna.com stable main" | sudo tee /etc/apt/sources.list.d/logdna.list
wget -O- https://s3.amazonaws.com/repo.logdna.com/logdna.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install logdna-agent < "/dev/null"
# ブラウザからSettings>Organization>Ingestion Keyを取得
sudo logdna-agent -k xxxxxxxxxxxxxxxxxxxxxxxx # this is your unique Ingestion Key
sudo logdna-agent -d /path/to/log/folders
sudo update-rc.d logdna-agent defaults
sudo /etc/init.d/logdna-agent start
  • logdna-agent -dで追加したディレクトリ・ファイルは/etc/logdna.confに追記される
  • 設定の変更は/etc/init.d/logdna-agent restartで適用される

まとめ

  • ブラウザのLIVE機能で集約されたログをtailできる
  • logdna tailでローカルなどからブラウザLIVEと同じようにtailできる
  • 検索が充実している(正規表現や複数条件など)
  • 特定ワードでの絞り込み、ハイライト
  • グラフから該当日のログ位置に飛べる
  • ブラウザLIVEで日本語の検索が効かない?(logdna tailではできた)
  • 安い、1ユーザーならホスト・データ転送量無制限
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away