-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
elasticsearchERROR Illegal char <:> at index 6: zipkin:span-2019-03-06 windows7 elasticsearch-2.3.1 #2428
Comments
can you give the full stack trace or error message? colon isn't disallowed
until elasticsearch 7
|
Hello |
Is your Elasticsearch server run on Windows and does it need to be? If it is just to test locally, maybe you can use Docker to run Elasticsearch? |
I hope this colon can be specified with a different symbol such as ES_DATE_SEPARATOR so I can specify @ |
@brightvip this sounds like a bug in ES. let's please verify that first @openzipkin/elasticsearch does anyone know if ES intentionally has a constraint about colons in index names in windows, or if this was a bug fixed. I want to separate this from the other issue about ES 7 as we've gone multiple years with no problems reported on colons and need to conserve time as making a change here also implies one in other places. |
2.x is really old and I don't have a Windows machine at hand, so I cannot try it out, but I have a hunch: We used the index name as the folder name in Elasticsearch's data directory. I think with 5.0 this was changed to use a UUID to avoid any issues with file systems and special naming patterns in them (like calling an index From Elasticsearch's point of view the colon will only be disallowed in 7.0 and you can see the current rules for disallowed characters in https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/cluster/metadata/MetaDataCreateIndexService.java#L162-L188. |
thanks for the advice @xeraa |
windows7
elasticsearch-2.3.1
elasticsearchERROR Illegal char <:> at index 6: zipkin:span-2019-03-06
126 https://github.com/openzipkin/zipkin/blob/release-2.12.3/zipkin-storage/elasticsearch/src/main/java/zipkin2/elasticsearch/internal/IndexNameFormatter.java
350-355 https://github.com/openzipkin/zipkin/blob/release-2.12.3/zipkin-storage/elasticsearch/src/main/java/zipkin2/elasticsearch/ElasticsearchStorage.java
The text was updated successfully, but these errors were encountered: