From 536f04ae9013b171c3118a03677bc4aefe38a4d8 Mon Sep 17 00:00:00 2001 From: genevera Date: Thu, 14 Mar 2019 12:44:28 -0400 Subject: [PATCH] switch back to timestamp el name, clean up verbiage --- glances/exports/glances_elasticsearch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glances/exports/glances_elasticsearch.py b/glances/exports/glances_elasticsearch.py index 6713a7ab..75bb3bf0 100644 --- a/glances/exports/glances_elasticsearch.py +++ b/glances/exports/glances_elasticsearch.py @@ -104,7 +104,7 @@ class Export(GlancesExport): # Create it... es.indices.create(index=self.index,body=template_body) else: - logger.info("There is already %s entries in the ElasticSearch %s index" % (index_count, self.index)) + logger.info("The index %s exists and holds %s entries." % (self.index, index_count)) return es @@ -125,7 +125,7 @@ class Export(GlancesExport): "plugin": name, "metric": c, "value": str(p), - "utc_datetime": dtnow.isoformat('T') + "timestamp": dtnow.isoformat('T') } } logger.debug("Exporting the following object to elasticsearch: {}".format(action))