{"_id":"5771a6d245c7080e00729280","parentDoc":null,"version":{"_id":"56ba46e2ce5d540d00e2d7aa","project":"56ba46e2ce5d540d00e2d7a7","__v":12,"createdAt":"2016-02-09T20:06:58.727Z","releaseDate":"2016-02-09T20:06:58.727Z","categories":["56ba46e3ce5d540d00e2d7ab","5771a6b145c7080e0072927f","5771a72eb0ea6b0e006a5221","5772e5b20a6d610e00dea073","577c3006b20f211700593629","57ae587bca3e310e00538155","57ae593a7c93fa0e001e6b50","57b1f8263ff6c519005cf074","582601f155b1060f00ec4173","582a62857a96051b0070b011","58ebfae58d5a860f00851fb9","590a75a1ec0d5e190095ab38"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"582a62857a96051b0070b011","__v":0,"version":"56ba46e2ce5d540d00e2d7aa","project":"56ba46e2ce5d540d00e2d7a7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-11-15T01:19:01.988Z","from_sync":false,"order":3,"slug":"tools","title":"Tools"},"user":"5732062ad720220e008ea1d2","__v":14,"project":"56ba46e2ce5d540d00e2d7a7","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-27T22:21:06.879Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"## What is the LogDNA CLI?\n\nThe LogDNA CLI (Command Line Interface) enables you to create and manage your LogDNA account, as well as tail your servers, straight from the command line!\n\n## How do I install the LogDNA CLI?\n\n### Mac\n\nDownload the [LogDNA CLI installer for Mac](http://repo.logdna.com/mac/logdna-cli.pkg).  \n\nAlternatively install via [brew cask](https://caskroom.github.io/):\n```\nbrew cask update\nbrew cask install logdna-cli\n```\n\n### Windows\n\nTo install on Windows, using [chocolatey](https://chocolatey.org):\n\n```\nchoco install logdna\n```\n\n### Linux\n\nFor Ubuntu/Debian:\n\n```bash\nwget -qO /tmp/logdna-cli.deb http://repo.logdna.com/linux/logdna-cli.deb && sudo dpkg -i /tmp/logdna-cli.deb\n```\n\n## How do I configure the LogDNA CLI?\n\nTo register a new LogDNA account, use the command:\n```\nlogdna register <email>\n```\n\nTo log in to an existing LogDNA account, use the command:\n```\nlogdna login\n```\n\n##How do I use the LogDNA CLI?\n\nThe below example tails a specific set of log lines:\n```\nlogdna tail -h source1,source2 -a app1 -l error search_query\n```\nThe below example searches for a specific set of log lines:\n```\nlogdna search -h source2 -a app1,app2 -l error,warn search_query\n```\n\n## How do I log into the CLI if I installed LogDNA via the Heroku add-on?\n\nYou can get your login credentials by visiting app.logdna.com and clicking the \"Forgot password\" link there. This will send you an email with your account information.\n\n##Where can I view the LogDNA CLI source code?\nIn the [LogDNA CLI GitHub repository](https://github.com/logdna/logdna-cli), of course! We love the open source community and welcome contributions. If you would like to submit a PR, you can check out [our contribution guide](https://github.com/logdna/logdna-cli/blob/master/CONTRIBUTING.md).","excerpt":"","slug":"logdna-cli","type":"basic","title":"LogDNA CLI"}
## What is the LogDNA CLI? The LogDNA CLI (Command Line Interface) enables you to create and manage your LogDNA account, as well as tail your servers, straight from the command line! ## How do I install the LogDNA CLI? ### Mac Download the [LogDNA CLI installer for Mac](http://repo.logdna.com/mac/logdna-cli.pkg). Alternatively install via [brew cask](https://caskroom.github.io/): ``` brew cask update brew cask install logdna-cli ``` ### Windows To install on Windows, using [chocolatey](https://chocolatey.org): ``` choco install logdna ``` ### Linux For Ubuntu/Debian: ```bash wget -qO /tmp/logdna-cli.deb http://repo.logdna.com/linux/logdna-cli.deb && sudo dpkg -i /tmp/logdna-cli.deb ``` ## How do I configure the LogDNA CLI? To register a new LogDNA account, use the command: ``` logdna register <email> ``` To log in to an existing LogDNA account, use the command: ``` logdna login ``` ##How do I use the LogDNA CLI? The below example tails a specific set of log lines: ``` logdna tail -h source1,source2 -a app1 -l error search_query ``` The below example searches for a specific set of log lines: ``` logdna search -h source2 -a app1,app2 -l error,warn search_query ``` ## How do I log into the CLI if I installed LogDNA via the Heroku add-on? You can get your login credentials by visiting app.logdna.com and clicking the "Forgot password" link there. This will send you an email with your account information. ##Where can I view the LogDNA CLI source code? In the [LogDNA CLI GitHub repository](https://github.com/logdna/logdna-cli), of course! We love the open source community and welcome contributions. If you would like to submit a PR, you can check out [our contribution guide](https://github.com/logdna/logdna-cli/blob/master/CONTRIBUTING.md).