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!
Download the LogDNA CLI installer for Mac.
Alternatively install via brew cask:
brew update brew cask install logdna-cli
To install on Windows, using chocolatey:
choco install logdna
wget -qO /tmp/logdna-cli.deb http://repo.logdna.com/linux/logdna-cli.deb && sudo dpkg -i /tmp/logdna-cli.deb
To register a new LogDNA account, use the command:
logdna register <email>
To log in to an existing LogDNA account, use the command:
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
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.