You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
filter{# Find `blacklisted_at` value for particular `host` in cache.lrucache{namespace=>"blacklisted_at"action=>"get"key=>"%{host}"target=>"blacklisted_at"}if ![blacklisted_at]{# If no value is found in cache, Query to elasticsearch.elasticsearch{query=>"host:%{host}"index=>"blacklist"fields=>{"@timestamp"=>"blacklisted_at"}}if[blacklisted_at]{# Store query result into cache.lrucache{namespace=>"blacklisted_at"action=>"set"key=>"%{host}"value=>"%{blacklisted_at}"}}}if[blacklisted_at]{# Drop incoming log from blacklisted host.drop{}}}
I want contribute my new plugin
logstash-filter-lrucache
to logstash-plugins.This plugin provides caching using the LRU(Least Recently Used) algorithm.
It based on lru_redux.
Example of usage
Links
The text was updated successfully, but these errors were encountered: