Git Product home page Git Product logo

logstash-filter-cache's Introduction

Logstash Filter Cache

This filter provide a cache where you can store data. This cache isn't here to store lots of elements or large elements.

Installation

bin/plugin install logstash-filter-cache

Usage

Put data in cache

   filter {
     cache {
       key => "keyTest"
       value => "TEST"
     }
   }

Get data from cache and put in a field

   filter {
     cache {
       key => "keyTest"
       get => true
       field => "data_in_cache"
     }
   }

Example

bin/logstash -e 'input { stdin {} } filter { cache { key => "keyTest" value => "TEST" } cache { key => "keyTest" get => true field => "data_in_cache" } } output {stdout { codec => rubydebug }}'
Logstash startup completed
Test
{
          "message" => "Test",
         "@version" => "1",
       "@timestamp" => "2015-11-19T22:01:04.191Z",
    "data_in_cache" => "TEST"
}

logstash-filter-cache's People

Contributors

apenvern avatar

Watchers

 avatar

logstash-filter-cache's Issues

Add ability to use dynamic key

The key is a static value and it would be nice to allow the use of any field value present in the event instead, like it is already the case for the value which allows it.

The idea is to allow this kind of keys:

   filter {
     cache {
       key => "%{keyField}"      # <--- add support for this
       value => "%{valueField}"  # <--- this already works
     }
   }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.