We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using a time format [ yyyy-MM-dd HH:mm:ss.SSS ] for elasticsearch data. Thus, I tried to configure time format with custom type like this.
timestamp_field: timestamp timestamp_type: custom timestamp_format: "%Y-%m-%d %H:%M:%S.%f"
But, %f is for microsecond, not millisecond. So I got this error.
[{u'reason': u'failed to parse date field [2016-07-04 02:27:56.274273] with format [yyyy-MM-dd HH:mm:ss.SSS]', u'type': u'parse_exception'}]
Is there any way to configure custom time format for millisecond?
The text was updated successfully, but these errors were encountered:
Unfortunately, Python doesn't support millisecond-only accurate with strftime.
I have not really tested this, but as a temporary fix, you can try replacing this line (
elastalert/elastalert/util.py
Line 142 in d5617c3
return ts[:-3]
Going the other way, python will accept .274 or .274000 milliseconds as equivalent, so that should be ok.
Sorry, something went wrong.
No branches or pull requests
I am using a time format [ yyyy-MM-dd HH:mm:ss.SSS ] for elasticsearch data.
Thus, I tried to configure time format with custom type like this.
But, %f is for microsecond, not millisecond.
So I got this error.
Is there any way to configure custom time format for millisecond?
The text was updated successfully, but these errors were encountered: