Hi Team, I have a requirement to create randomly generated directories from scripts to create separate indices i.e /mnt/data/logger/xyz/xyz-1.1.1.1 and /mnt/data/logger/xyz/xyz-1.2.1.1 here xyz-x.x.x.x these are generating programatically.
How can I create seperate indices for each random directory? Im using filebeat to collect the logs and logstash for filter and indexing.
exepectation: xyz-1.1.1.1-{date} and xyz-1.2.1.1-{date}
That's simple enough. Parse [log][file][path] using grok to extract the directory name (e.g. see this thread).
However, creating an index per day per directory can be a performance issue in elasticsearch because it can create a large number of small indexes/shards. (An index is stored in one or more shards.)
The documentation recommends using multi-gigabyte shards.
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.