https://github.com/synlay/logstash-filter-cache-redis
Redis cache filter for Logstash
https://github.com/synlay/logstash-filter-cache-redis
logstash logstash-plugin redis
Last synced: 4 months ago
JSON representation
Redis cache filter for Logstash
- Host: GitHub
- URL: https://github.com/synlay/logstash-filter-cache-redis
- Owner: synlay
- License: mit
- Created: 2017-07-11T20:54:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T02:49:53.000Z (over 8 years ago)
- Last Synced: 2024-09-21T14:20:00.998Z (almost 2 years ago)
- Topics: logstash, logstash-plugin, redis
- Language: Ruby
- Size: 14.6 KB
- Stars: 7
- Watchers: 3
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Logstash Filter Redis Cache Plugin
[](https://travis-ci.org/synlay/logstash-filter-cache-redis)
[](https://coveralls.io/github/synlay/logstash-filter-cache-redis?branch=master)
[](https://badge.fury.io/rb/logstash-filter-cache-redis)
[](https://github.com/synlay/logstash-filter-cache-redis)
This is a plugin for [Logstash](https://github.com/elastic/logstash).
It is fully free and fully open source. The license is MIT, see [LICENSE](http://github.com/synlay/logstash-filter-cache-redis/LICENSE) for further infos.
## Documentation
This filter will store and retrieve data from Redis data cache. The fields `source` and `target` are used alternatively as data in- or output fields, while the value of a defined command like `rpush` will look for the corresponding event and use that value as the key. The following example for instance will store data from the event `ProductEntity` under the key based upon the data from the event `ProductId`:
```ruby
filter {
cache_redis {
rpush => "ProductId"
source => "ProductEntity"
}
}
```
## Developing
For further instructions on howto develop on logstash plugins, please see the documentation of the official [logstash-filter-example](https://github.com/logstash-plugins/logstash-filter-example#developing).