Reason for changing timestamp format in pretty_ts() function #372
-
In elastalert, This is due to changing format string from elastalert2/elastalert/util.py Line 211 in 722b24f I want to know why this change is required, and how I can print timestamp in alert text with the format like In my use case, I prefer to the former format style. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I also traced the conversations and code changes in PR #51.
Since both display methods have their advantages and disadvantages, and each user has different requirements, it would be very useful to be able to select either of them. I guess whether the format is '%Z' or '%z' has no effect on the behavior of the ElastAlert itself. |
Beta Was this translation helpful? Give feedback.
-
@dilaverdemirel Could you please comment on why you changed the pretty_ts timezone format in PR #51? |
Beta Was this translation helpful? Give feedback.
-
@strikesmash @dilaverdemirel @jertel Thank you for your comments! They help me a lot! Considering @strikesmash's suggestion and also situation like the one @dilaverdemirel has commented above, it would be very useful for pretty_ts() function to allow users to customize timezone format. I will make a PR in which pretty_ts() and its related components are modified so that users can customize timezone format. Please give me some time to develop. |
Beta Was this translation helpful? Give feedback.
@dilaverdemirel Could you please comment on why you changed the pretty_ts timezone format in PR #51?