Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change Timestamp format #1701

Open
Invictus96 opened this issue May 17, 2018 · 1 comment
Open

change Timestamp format #1701

Invictus96 opened this issue May 17, 2018 · 1 comment

Comments

@Invictus96
Copy link

Hi,
I got the following timestamp format in elasticsearch:
@timestamp 26.01.2018 15:52:55

The Timestamp that will be send from Elastalert via email is the following:
Timestamp: 2018-01-26T15:52:55Z

Now I want to change the format from Elastalert to the elasticsearch timestamp. To do this I made those configurations in the rule:

timestamp_field: timestamp
timestamp_type: custom
timestamp_format: "%d.%m.%Y %H:%M:%S"

But no email is send anymore.

@Qmando
Copy link
Member

Qmando commented Jun 1, 2018

You can set use_local_time: true which will make the timestamp in the subject of the email localized. I don't think it will affect the body of the email though. There's not really a good way to change that right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants