mallocator / Elasticsearch-Exporter

A small script to export data from one Elasticsearch cluster into another.
Apache License 2.0
593 stars 112 forks source link

No error when index not found #112

Closed bemeyert closed 8 years ago

bemeyert commented 8 years ago

By accident I tried to copy an index that didn't exist and exporter.js did say nothing:

[root@salttestvm70 Elasticsearch-Exporter]# node exporter.js -th localhost -si logstash-2015.10.11 -sh other-host
Elasticsearch Exporter - Version 2.0.0
Mapping on target database is now ready
Starting data export
Fetched Entries:    0 documents
Processed Entries:  0 documents
Source DB Size:     0 documents
mallocator commented 8 years ago

To be fair, it did say that no documents were exported. Now it prints a message in red warning when no documents have been found (for whatever reason).