I get ES indexes via
/_cat/indices
endpoint.
This tells me a number of documents for each index.
I want to monitor such number and analyze it dynamic during three time intervals (minute/hour/day).
But according indexes naming (index_name_<date>
) I guess its refresh interval is 24 hours.
Is that true?
If no - where's refresh interval information located?
Look at the index settings. The refresh interval is by default 1 second if nothing has been specified to override this.
Is not such settings stored at the configuration file(s)?
I have many indices and it'd be more convenient to explore it avoiding API requests.
If you have not specified it in any index templates or explicitly set it on index creation it should be the default. To veryfy this you will need to use the API.
Hello,
Maybe below API can be useful as per your requirement :
GET /*/_settings?include_defaults=true&flat_settings=true&filter_path=*.defaults.*refresh_interval
Thanks!!
1 Like