root@python-debug-5fdd9d9cd5-fkfkh:/usr/local/lib/python3.5# elastalert-create-index Enter Elasticsearch host: 127.0.0.1 Enter Elasticsearch port: 9200 Use SSL? t/f: f Enter optional basic-auth username (or leave blank): Enter optional basic-auth password (or leave blank): Enter optional Elasticsearch URL prefix (prepends a string to the URL of every request): New index name? (Default elastalert_status) realtysense.elastalert_status New alias name? (Default elastalert_alerts) realtysense.elastalert_status Name of existing index to copy? (Default None) Elastic Version: 5.4.1 Reading Elastic 5 index mappings: Reading index mapping 'es_mappings/5/silence.json' Reading index mapping 'es_mappings/5/elastalert_status.json' Reading index mapping 'es_mappings/5/elastalert.json' Reading index mapping 'es_mappings/5/past_elastalert.json' Reading index mapping 'es_mappings/5/elastalert_error.json' New index realtysense.elastalert_status created Done!
ERROR elastalert-server: ProcessController: ERROR:root:Traceback (most recent call last): File "/opt/elastalert/elastalert/elastalert.py", line 1450, in alert return self.send_alert(matches, rule, alert_time=alert_time, retried=retried) File "/opt/elastalert/elastalert/elastalert.py", line 1544, in send_alert alert.alert(matches) File "/opt/elastalert/elastalert/alerts.py", line 484, in alert body = self.create_alert_body(matches) File "/opt/elastalert/elastalert/alerts.py", line 291, in create_alert_body body += str(BasicMatchString(self.rule, match)) File "/opt/elastalert/elastalert/alerts.py", line 171, in __str__ self._add_custom_alert_text() File "/opt/elastalert/elastalert/alerts.py", line 99, in _add_custom_alert_text alert_text = alert_text.format(*alert_text_values) KeyError: '\n background-color'
if (config.get('es_debug_trace') !== undefined && config.get('es_debug_trace') !== '') { logger.info('Setting ElastAlert es_debug_trace mode. Enable logging from Elasticsearch queries as curl command. Queries will be logged to file.'); startArguments.push('--es_debug_trace', config.get('es_debug_trace'));