mallocator/Elasticsearch-Exporter

No error when index not found

bemeyert opened this issue · 1 comments

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

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).