Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- redis {
- host => "127.0.0.1"
- data_type => "pattern_channel"
- key => "web:production:*"
- codec => json
- }
- filter {
- if [key] == "web:production:request" {
- alter {
- add_field => { "index_type" => "request" }
- }
- }
- if [key] == "web:production:system" {
- alter {
- add_field => { "index_type" => "system" }
- }
- }
- }
- output {
- elasticsearch {
- index => "web-production-%{+YYYY.MM.dd}"
- index_type => "%{index_type}"
- # THIS IS NOT WORKING
- protocol => "http"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement