TheHive-Project / TheHive-Project/Cortex

ERROR CONNECTING REFUSED OR CLOSED CORTEX WITH OPENSEARCH

Open
#453 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.6k
Forks
264
PR merge metrics
No merged PRs in 30d

Description

ERROR CONNECTING REFUSED OR CLOSED CORTEX WITH OPENSEARCH

Request Type

Error connection refused or closed with opensearch and cortex

Work Environment
Question Answer
OS version (server) RedHat 8.8
Cortex version 3.1.7
Opensearch 1.3.11
Package Type RPM
Browser type & version Firefox
Problem Description

I tried to use opensearch instead elasticsearch with cortex but this cause errors

This is the configuration in opensearch.yml

imagen
imagen
imagen
imagen

this is my configuration with cortex in application.conf

imagen

I got these errors when I tried to reach the cortex page 127.0.0.1:9001

imagen
imagen
imagen
imagen

If I tried to change these values below in opensearch.yml i got this error

I changed the values from false to true
imagen

I got the next errors

imagen
imagen
imagen
imagen

Steps to Reproduce

Step 1 install opensearch version 1.3.11 and configure opensearch accordingly and run service
Step 2 install cortex 3.1.7 latest version and configure cortex accordingly and run service
Step 3 Try to open cortex in browser localhost:9001 and this cause error

Possible solutions

Maybe I think this is a problem with elastic4s and elastic4play libraries of cortex and this cause a problem with compatibility with opensearch, maybe these libraries needs to be change to have a compatibility with opensearch

Complementary information

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Cortex application.conf and the supplied opensearch.yml settings, then reproduce the startup failure using Cortex 3.1.7 and OpenSearch 1.3.11. Review the reported elastic4s and elastic4play libraries and their compatibility information. Done means identifying the compatibility cause and defining a confirmed, scoped fix or documenting that this OpenSearch setup is unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.