Hi, you can add your index template to the Elasticsearch configuration file ( https://www.elastic.co/guide/en/elasticsearch/reference/0.90/indices-templates.html#config) referenced in the elasticsearch_config_file setting in the Graylog configuration file ( https://github.com/Graylog2/graylog2-server/blob/0.20.1/misc/graylog2.conf#L41-43). This file is being used for additional configuration of the Elasticsearch node client being used inside Graylog itself.
This being said, you should really upgrade to a more recent of Graylog as there've been substantial improvements regarding performance and stability since Graylog2 0.20.x. Cheers, Jochen On Tuesday, 28 July 2015 13:42:47 UTC+2, ZeroUno wrote: > > Il 28/07/15 12:06, ZeroUno ha scritto: > > > I tried with templates: I created this file as > > templates/graylog2_ttl_template.json inside /etc/elasticsearch, which is > > where elasticsearch configuration can be found: > > A small update: I can see this can work if I create the template by curl > -XPUT localhost:9200/_template/graylog2_ttl_template -d '...' > > But for my purpose using a file would be much better. > Anyone knows why this is not working? > > Thanks. > > -- > 01 > > -- You received this message because you are subscribed to the Google Groups "graylog2" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
