and used the same calls to create indices, add data and rollover indices
after executing rollover indices it created another new index as max_docs condition was hit.
And active-logs alias now points to the new index active-logs-2 index whereas search-logs alias points to both active-logs-1 and active-logs-2 indices.
How did it determine one alias was used for indexing and the other one for searching? I didnt specify any parameters indicating about search or index.
why is "active-logs" alias pointing to only "active-logs-000002" whereas "search-logs" alias is pointing to both "active-logs-1" and "active-logs-000002"?
how did it determine "active-logs" alias was used for indexing? I did not specify that "active-logs" alias is used for indexing and "search-logs" is used for searching in the above list of calls.
Did you run the last POST command in the blog that updates the aliases?
It doesn't. These are simply abstractions to make it easier.
Rather than the system that sends the logs to ES having to know that the current active index is active-logs-000001 and then after the rollover is now called active-logs-000002, you use these as abstractions to that all it needs to do is write to active-logs.
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.