Skip to content

No9/logentries-dtrace

Repository files navigation

#logentries-dtrace

This is a library to send the output of DTrace scripts to Logentries. In order to utilise the library you will need to create an account on Logentries. (They are available from free!)

Prerequisites

A Logentries account

Install

$ npm install logentries-dtrace

Usage

var logdtrace = require("logentries-dtrace")
    ('LOGENTRIES_TOKEN', locationofdtracefile, interval)

See examples folder for more details

Running The HTTP Example

In the directory you have installed the module:

$ cd node_modules/logentries-dtrace/examples
$ sudo node http-server

You should now be able to open the a default website on your server http://localhost/

Create a logfile on logentries of source_type Token TCP and add the token printed in green in the .js file you wish to run. You should now be able to run D-Trace Against Log Entries

$ sudo node singlelatency.js

And then with apache benchmark installed.

$ ab -n10000 http://localhost

About

A library for logging DTrace events into logentires.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •