I guess you are on an older version of Elasticsearch like 1.x or 2.x as you've defined this setting in elasticsearch.yml. I recommend you define this setting with an index template instead:
Note: This will also simplify upgrading as Elasticsearch 5 does not allow you anymore to define index settings in elasticsearch.yml.
It's hard to tell why the refresh interval is 5s though. The most likely cause is that you already have an index template that overrides your setting. Just issue GET /_template to see a list of all your index templates and see if you can find it that way.
Yes, that's correct. I'm currently on version 2.4.4 - I should have included this in the OP - apologies!
Fantastic! That solved my issue completely. There was indeed a default template for Logstash which enforced a refresh_interval of 5s. I deleted it and created a new template per your suggestion above. The refresh interval is now correct at 30s.
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.