You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the migration tool to move from theHive 3.4.0-1 to 4.1.17-1. Upon starting theHive after the migration, I noted many logs indicating duplications, for example:
[info] o.t.t.s.ImpactStatusIntegrityCheckOps [|1012ed57] Found duplicate entities:
ImpactStatus(NotApplicable)
ImpactStatus(NotApplicable)
[info] o.t.t.s.ObservableTypeIntegrityCheckOps [|1383fe4a] Found duplicate entities:
ObservableType(hash,false)
ObservableType(hash,false)
[info] o.t.t.s.ObservableTypeIntegrityCheckOps [|0924e2c1] Found duplicate entities:
ObservableType(fqdn,false)
ObservableType(fqdn,false)
[info] o.t.t.s.ObservableTypeIntegrityCheckOps [|29d7837d] Found duplicate entities:
ObservableType(file,true)
ObservableType(file,true)
[info] o.t.t.s.ResolutionStatusIntegrityCheckOps [|4908101d] Found duplicate entities:
ResolutionStatus(Other)
ResolutionStatus(Other)
Within the GUI, I can notice the result of these duplicates in the observables. The screenshot below shows duplicate selection options for when new observables.
Steps to Reproduce
Start a clean version of theHive with no data, allow it to come up, creating database schemas, etc.
Stop theHive docker container.
Start theHive in docker without theHive service running by adding the following to my docker-compose file: entrypoint: sleep infinity
Enter theHive as root docker exec -it --workdir /root --user root thehive bash
Prior to running the command above I also had to adjust my docker-compose file to mount the parent directory for the index folder. This allows the migration tool to delete the index folder. ./vol/thehive/opt/thp/thehive:/opt/thp/thehive
instead of: ./vol/thehive/index:/opt/thp/thehive/index
Once the tool was finished, I modified the permissions on my host to ensure all of the files created when running the tool could be accessed when running as thehive user. The better approach may have been to just run the tool as thehive user, but I am not sure if the tool needed to be ran as root or not. chown -R 1000:1000 ./vol/thehive/opt/thp/thehive
Request Type
Bug
Work Environment
Problem Description
I used the migration tool to move from theHive 3.4.0-1 to 4.1.17-1. Upon starting theHive after the migration, I noted many logs indicating duplications, for example:
[info] o.t.t.s.ImpactStatusIntegrityCheckOps [|1012ed57] Found duplicate entities:
[info] o.t.t.s.ObservableTypeIntegrityCheckOps [|1383fe4a] Found duplicate entities:
[info] o.t.t.s.ObservableTypeIntegrityCheckOps [|0924e2c1] Found duplicate entities:
[info] o.t.t.s.ObservableTypeIntegrityCheckOps [|29d7837d] Found duplicate entities:
[info] o.t.t.s.ResolutionStatusIntegrityCheckOps [|4908101d] Found duplicate entities:
Within the GUI, I can notice the result of these duplicates in the observables. The screenshot below shows duplicate selection options for when new observables.
Steps to Reproduce
Start a clean version of theHive with no data, allow it to come up, creating database schemas, etc.
Stop theHive docker container.
Start theHive in docker without theHive service running by adding the following to my docker-compose file:
entrypoint: sleep infinity
Enter theHive as root
docker exec -it --workdir /root --user root thehive bash
Copy log file
cp /opt/thehive/conf/logback-migration.xml /etc/thehive/
Start the migration tool
I referenced other issues and tried with and without the
--es-single-type true
option.I read through similar issues 2331 , 2333, and 2334 but I am unsure how to resolve.
thehive_migration_duplication_logs.txt
The text was updated successfully, but these errors were encountered: