-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
elasticsearch storage can not customize the date format #1489
elasticsearch storage can not customize the date format #1489
Comments
Seems like a reasonable enhancement/configuration. |
Ok, the code I have developed and is testing. |
I am more skeptical about this. We will need to also change the index cleaner (written in python). The problem is that the date format in python is different than in golang. The related issue is also #628. If we are going to implement this we should not allow changing the granularity if the indices (daily, monthly etc.) |
I can develop a time format conversion program, yyyy-MM-dd converted to 2006-01-02. |
the easiest would be to make the date separator configurable e.g. |
Your idea is great, but my code has been developed. Which one do you think is more appropriate? |
It depends on how did you do it. I would be more in favor of a separator. |
1 python cleanup script |
Also https://github.com/jaegertracing/spark-dependencies will need to be changed. |
This is not what we want here as it changes indices granularity |
in conclusion: How do you think you choose? |
We can only change the separator e.g. This change would have to be coordinated between storage impl, python scripts, spark dependency job and Kubernetes operator. |
ok, thank you for your reply! |
Hi,
I m guessing we should provide dateformat under |
Requirement - what kind of business use case are you trying to solve?
I want to solve the elasticsearch storage index can not customize the date format
Problem - what in Jaeger blocks you from solving the requirement?
The date format for elasticsearch to store data is fixed to 'yyyy-MM-dd', e.g: jaeger-span-2019-04-24
But my company has optimization tools for elasticsearch storage, this tool only recognizes the 'yyyyMMdd' format. e.g: jaeger-span-20190424
I believe many people will also have problems similar to me.
Proposal - what do you suggest to solve the problem or improve the existing situation?
I want to fork the code, add an es run parameter 'es.index.suffix.date.format', the default is '2006-01-02' format, support custom date format.
The text was updated successfully, but these errors were encountered: