Sha256: d83faef6e19d3b709009535be58b1b9fccb195e5f6ad802b885dcea3e4d5e208

Contents?: true

Size: 1.68 KB

Versions: 3

Compression:

Stored size: 1.68 KB

Contents

# Logstash Delta Filter Documentation

[![Travis Build Status](https://travis-ci.org/tiwilliam/logstash-filter-delta.svg)](https://travis-ci.org/tiwilliam/logstash-filter-delta)
[![Gem Version](https://badge.fury.io/rb/logstash-filter-delta.svg)](https://badge.fury.io/rb/logstash-filter-delta)

This filter helps you to calculate integer or float delta and tag based on result or write it to a field.

## Write delta to field

```
delta {
    between_fields => [
        {"start_time" => "end_time"}
    ]
    output_field => "delta_time"
}
```

## Set tag based on delta

```
delta {
  between_fields => [
  	{"backend_epoch" => "client_epoch"}
  ]
  min => -10  # -10 seconds
  max => 600  # +10 minutes
	tag_on_min_failure => ["_event_too_new"]
	tag_on_max_failure => ["_event_too_old"]
}
```

## Filter options

* **between_fields**

  Hash with one key representing start and value representing end. Required.

* **output_field**

  In which field to store delta value on match. Optional.

* **min**

  Minimum delta allowed for match. Optional.

* **max**

  Maximum delta allowed for match. Optional.

* **tag_on_failure**

  Append values to the `tags` field on generic failure. Defaults to `["_deltafailure"]`.

* **tag_on_min_failure**

  Append values to the `tags` field on min failure. Defaults to `["_deltafailure"]`.

* **tag_on_max_failure**

  Append values to the `tags` field on max failure. Defaults to `["_deltafailure"]`.

## Changelog

You read about all changes in [CHANGELOG.md](CHANGELOG.md).

## Need help?

Need help? Try #logstash on freenode IRC or the [Logstash discussion forum](https://discuss.elastic.co/c/logstash).

## Want to contribute?

Get started by reading [BUILD.md](BUILD.md).

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logstash-filter-delta-1.1.0 README.md
logstash-filter-delta-1.0.1 README.md
logstash-filter-delta-1.0.0 README.md