Hello,
I want to have different indexes depending on the type, ie if the type is 
syslog, I want a syslog-logstash-DATE index. That is easy to achive then I 
want to have a mapping per index. That is have one template per index, is 
there a way to do that. I have tried something like this:

input {
        redis {
                host => "127.0.0.1"
                data_type => "list"
                type => "redis-input"
                key => "logstash"
        }
        syslog {
                type => syslog
                port => 5514
        }
}
output {
        stdout { }
        elasticsearch {
                cluster => "logstash"
                index => "%{type}-logstash-%{+YYYY.MM.dd}"
                template => "/etc/logstash/conf.d/%{type}-template.json"
        }
}

But it does not work, is there a way to do it, besides doing it manually?

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c31a8b93-bc7b-47eb-afc1-83859f138660%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to