App-ElasticSearch-Utilities
view release on metacpan or search on metacpan
scripts/es-copy-index.pl view on Meta::CPAN
=head2 Changing settings and mappings
es-copy-index.pl --from localhost \
--source logstash-2013.01.11 \
--destination testing-new-settings-old-data-2013.01.11 \
--settings new_settings.json \
--mappings new_mappings.json
=head2 Building an Incident Index using append
Let's say we were investigating an incident and wanted to have
an index that contained the data we were interested in. We could use different
retention rules for incident indexes and we could arbitrarily add data to them based
on searches being performed on the source index.
Here's our initial query, a bad actor on our admin login page.
es-copy-index.pl --from localhost \
--source logstash-2013.01.11 \
--destination incident-rt1234-2013.01.11 \
src_ip:1.2.3.4 dst:admin.exmaple.com and file:'\/login.php'
( run in 0.855 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )