Нello!
In kibana the time is displayed correctly (UTC + 3).
But the email sent from elastalert its still in UTC-0 is there anyway to force it to show up as UTC +3?
I've already done:
elastalert_modules\my_enhancements.py
from elastalert.util import pretty_ts
from elastalert.enhancements import BaseEnhancement
class TimeEnhancement(BaseEnhancement):
def process(self, match):
if '@timestamp' in match:
ts = match['@timestamp']
if isinstance(ts, str) and ts.endswith('Z'):
match['@timestamp_local'] = pretty_ts(ts)
The rule works when I run elastalert --config config.yaml --verbose --rule rules\rule1.yaml and alerts are sent.
But in normal mode, nothing comes to the mail.
Help me please!
Нello! In kibana the time is displayed correctly (UTC + 3). But the email sent from elastalert its still in UTC-0 is there anyway to force it to show up as UTC +3? I've already done: elastalert_modules\my_enhancements.py
rules\rule1.yaml
The rule works when I run
elastalert --config config.yaml --verbose --rule rules\rule1.yaml
and alerts are sent. But in normal mode, nothing comes to the mail. Help me please!Solution #861 didn't work for me.