Giter Club home page Giter Club logo

logdna-cli's Introduction

logdna-cli

The LogDNA CLI allows you to signup for a new account and tail your servers right from the command line.

Installation

macOS

Download the [LogDNA CLI installer for Mac] (http://repo.logdna.com/mac/logdna-cli.pkg).

Alternatively install via brew cask:

brew cask update
brew cask install logdna-cli

Windows

To install on Windows, using chocolatey:

choco install logdna

Linux

For Ubuntu/Debian:

sudo wget -qO /tmp/logdna-cli.deb http://repo.logdna.com/linux/logdna-cli.deb && sudo dpkg -i /tmp/logdna-cli.deb

For RHEL/CentOS:

sudo wget -qO /tmp/logdna-cli.rpm http://repo.logdna.com/linux/logdna-cli.rpm && sudo rpm -ivh /tmp/logdna-cli.rpm

Using the CLI

Go to the LogDNA website, select your OS and follow the instructions. You can also type: logdna --help or node index --help using the source.

Building

To build the cli, ensure you have nexe installed. This packages the LogDNA CLI as a native executable with the node.js runtime bundled. This will automatically build the runtime from source.

Linux

Ensure you have a native C++ compiler installed.

Windows

Ensure you have Visual Studio 2015 or newer installed.

macOS

Ensure you have Xcode 7 or newer installed.

Creating the binary

To start the build:

grunt build

This takes a bit of time and will output a binary at ./logdna (or .\logdna.exe if on Windows). For the initial build, majority of time will be spent building node.js. Subsequent builds will be much faster as node.js would've already been built.

Packaging

Linux

sudo gem install fpm
sudo yum install rpm-build createrepo
sudo yum --enablerepo=epel install dpkg-devel dpkg-dev
grunt linux

This will output the deb and yum files to the root of the repo.

Windows

Install chocolatey. Then do:

grunt windows

This will output the chocolatey package under .\.builds\windows.

macOS

gem install fpm
grunt mac

This will output the pkg file to the root of the repo. Signing will likely fail since we typically sign it with our Apple Developer key, but the package should still be usable, just unsigned.

Contributing

Contributions are always welcome. See the contributing guide to learn how you can help.

logdna-cli's People

Contributors

leeliu avatar beefcheeks avatar meffij avatar yields avatar

Watchers

Steve Huff avatar James Cloos avatar Alaric Hartmann avatar Jonathan Stucklen avatar Joe Bondi avatar Yoshinori Isogai avatar John Noss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.