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.

Alternatively install via brew cask:

brew update
brew cask install logdna-cli

Windows

To install on Windows, using chocolatey:

choco install logdna

Linux

For Ubuntu/Debian:

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, 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.