logentries-dtrace

1.0.0 • Public • Published

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

As root

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

Readme

Keywords

none

Package Sidebar

Install

npm i logentries-dtrace

Weekly Downloads

3

Version

1.0.0

License

none

Last publish

Collaborators

  • no9