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:
The best way I can think of would be to use conditionals in your output,
one per type, then you can directly point to specific templates for each
type.
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:
Hello,
Yes, I thought about that, but we wanted something more dynamic, so we do
not have to register every type, so if we have a new logstash shipper with
a new type, we do not have to do anything in the central logstash.
Thanks!
El miércoles, 5 de noviembre de 2014 17:56:23 UTC+13, Mark Walkom escribió:
The best way I can think of would be to use conditionals in your output,
one per type, then you can directly point to specific templates for each
type.
On 5 November 2014 15:41, Alejandro Alves <alejand...@gmail.com
<javascript:>> wrote:
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:
I have created a pull request which creates this feature
El miércoles, 5 de noviembre de 2014 17:41:07 UTC+13, Alejandro Alves
escribió:
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:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.