# statsd-json-log-backend

> A StatsD backend that emits data into Logstash compatible JSON file.

Latest version **0.0.2** (published 2014-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install statsd-json-log-backend
pnpm add statsd-json-log-backend
yarn add statsd-json-log-backend
bun add statsd-json-log-backend
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-07-07 |
| First published | 2014-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fortumo Ltd. |
| Maintainers | noonius |
| Keywords | statsd, metrics |

## Links

- npm: https://www.npmjs.com/package/statsd-json-log-backend
- Repository: https://github.com/fortumo/statsd-json-log-backend
- Issues: https://github.com/fortumo/statsd-json-log-backend/issues
- npm.io page: https://npm.io/package/statsd-json-log-backend

## Recent versions

- 0.0.2 (latest) — 2014-07-07
- 0.0.1 — 2014-07-07

## README

## StatsD backend to flush stats to JSON file

### Overview

This is a pluggable backend for StatsD to flush stats into a Logstash compatible JSON file.

### Requirements

* statsd versions >= 0.4.0.

### Installation

    $ cd /path/to/statsd
    $ npm install statsd-json-log-backend

### Configuration and Enabling

Add `json_log` configuration block and `statsd-json-log-backend` to the backends list in StatsD configuration file.

```js
{
  json_log: {
    application: 'application_name', // prefix to all the metric names in output [string, default: OS hostname]
    logfile: 'path-to-output-file'   // file to write the output to [string, default './statsd-log.json' ]
  },
  backends: [ 'statsd-json-log-backend' ]
}
```

---
_Source: https://npm.io/package/statsd-json-log-backend · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
