-
Notifications
You must be signed in to change notification settings - Fork 1.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
Graylog 5.0 fails to index input messages with Opensearch 2.x #14236
Comments
Hey @Ahmad-Faizan, thanks for reporting this. We are using Graylog 5.0 with Opensearch 2.x for quite a while now, so it is surprising that it does not seem to work for you. Are you sure that there are no connectivity issues? Particularly the |
Thanks for responding @dennisoelkers I see this log in the graylog pod when it starts up, I assume it means that Graylog is able to communicate with OpenSearch.
Here is a curl request from graylog pod to the opensearch service (both are in the same namespace) graylog@graylog-0:~$ curl http://user:password@opensearch-cluster-master:9200
{
"name" : "opensearch-cluster-master-1",
"cluster_name" : "opensearch-cluster",
"cluster_uuid" : "<some-uuid>",
"version" : {
"distribution" : "opensearch",
"number" : "2.0.1",
"build_type" : "tar",
"build_hash" : "6462a546240f6d7a158519499729bce12dc1058b",
"build_date" : "2022-06-15T08:47:42.243126494Z",
"build_snapshot" : false,
"lucene_version" : "9.1.0",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
} |
@Ahmad-Faizan I am no expert with the Helm charts, but there is the following in 'values.yaml'
Did you change it? Try removing |
|
Thanks for pointing that out @janheise , it was the root cause. It was silly of me to miss this detail. |
How did you end up fixing it? afaik you can remove the versioning by adding {} to the line in the values.yaml, correct? tags:
install-opensearch: false
graylog:
image:
tag: 5.1.2
opensearch:
version: {}
input:
udp:
service:
name: graylog-udp
type: ClusterIP
ports:
- name: wazuh
port: 5555
config: |
elasticsearch_index_prefix = graylog |
@Cobesz
|
We have installed Graylog using Helm chart from KongZ repo. As the chart is not released with support for the latest Graylog, we manually changed the image tag to 5.0.0 and deployed it alongside MongoDB 5.0.0 and OpenSearch version 2.0.1 and 2.3.0 on Kubernetes 1.24.6 on Azure.
The deployment comes up online and the Elasticsearch cluster is in green state. There are no error logs from Graylog, MongoDB or OpenSearch pods.
The Graylog support matrix: https://go2docs.graylog.org/5-0/planning_your_deployment/planning_your_upgrade_to_opensearch.htm
Expected Behavior
If we add an input to Graylog, f.ex
GELF TCP
, and send a message usingecho
andnetcat
, the message should show up in the search dashboard. Instead of using a GELF TCP input, we can also test it with Random Message Generator under System > Inputs > Select New Input. It shall generate random messages which we can then view and search from the homepage.Current Behavior
If we add an input to Graylog, f.ex
GELF TCP
, and send a message usingecho
andnetcat
, the message fails to index with thebulk
API.The widget in the homepage gives this error message:
The pod logs have this message:
Since the OpenSearch version 2.0.1 and 2.3.0 is supported by Graylog 5 according to the support matrix, the indexing errors should not come.
Possible Solution
We found that the same issue is happening even with OpenSearch version 2.3.0.
Looking at https://opensearch.org/docs/2.3/breaking-changes/ , we think that this is due to API changes related to Java High Level REST API client inside Graylog.
opensearch-project/OpenSearch#1940
opensearch-project/OpenSearch#2215
opensearch-project/OpenSearch#4643
Steps to Reproduce (for bugs)
5.0.0
in Graylog chartContext
We want to run Graylog with FluentBit to import the logs to our cluster. FluentBit would generate and stream the logs to our
https://graylog-input.mydomain.com
and we can store and index the logs on latest versions of Graylog, OpenSearch and MongoDB.Your Environment
The text was updated successfully, but these errors were encountered: