A library for logging DTrace events into logentires.
JavaScript D
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
node_modules
.gitignore
README-MarkdownPadPreview.html
README.md
index.js
package.json

README.md

#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