-
Notifications
You must be signed in to change notification settings - Fork 640
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
[Bug] Migration tool migrates unsupported elastic index #1907
Comments
@mamoedo you're right, nice catch |
Creating an alias _15 in the Elasticsearch for _17 can solve the problem too |
What about not appending anything to the value passed on the "-i, --es-index" flags???? Or at least document that you do this appending. That sounds like something you would expect a script to do, specially when it allows the user to specify values as parameters, don't you think? Just so you know, the change breaks the migration for installations with the index the_hive_15 which worked before. |
@nunofranciscomoreira but migration is not supported from TH 3.4, which is the one tha has |
The whole point of this tool was to migrate stuff from 3 to 4. It supported 3.4 until this stupid change. |
@nunofranciscomoreira I'm sorry that you think that the change it's stupid, but TH 3.4 was never supposed to be supported, but TH 3.5 did, so this change is neccesary. TH 3.4 is not the same as TH 3.5. |
Please read the docs. |
Sorry I was thinking about TH4.1X which is "the good one" |
I'm currently trying the alias workaround and it looks promising.
I'm glad that we can see clear now 😃 I've tried, with no luck, to build a "fixed" version on my machine, but I'm getting all sort of errors while building using ./sbt. Adding the |
Request Type
Bug
Work Environment
Problem Description
I am using the migration tool to migrate from THv3.4.2 to 4.1.1 going through 3.5.1. In my elastic i have _15 and _17 indexes.
When i use the migration tool i am having problems because the tool is trying to use _15 index and deeping on the code i think if this portion of code (https://github.com/TheHive-Project/TheHive/blob/main/migration/src/main/scala/org/thp/thehive/migration/th3/DBConfiguration.scala#L208)
because the val _15 is for 3.4.2
val index_3_4_2 = indexBaseName + "_15"
Possible Solutions
Change this code to use _17 index
The text was updated successfully, but these errors were encountered: