Logstash Java Plugin
This is a Java plugin for Logstash.
It is fully free and fully open source. The license is Apache 2.0, meaning you are free to use it however you want.
The documentation for Logstash Java plugins is available here.
Configuration
time_chunks {
source => "@timestamp"
date_prefix => true
chunks => [5, 10, 15, 30]
}
- chunks - chunk size (intervals) in minutes.
- date_prefix - add date string before chunk index (e.g. 2019-11-14-1 with prefix or 1 without prefix)
- source - name of the field that contains the timestamp.
Build and release
```shell script
mkdir -p ~/.gem;
curl -u
./gradlew gem gem push $(find ./ -maxdepth 1 -name '*.gem' | awk -F/ '$2');
see: https://www.elastic.co/guide/en/logstash/current/java-filter-plugin.html
see: https://rubygems.org/gems/logstash-filter-time_chunks