Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2192955

Summary: omelasticsearch unable to talk to opensearch 2.0 with bulkmode on
Product: Red Hat Enterprise Linux 8 Reporter: Yogendra <ykhutale>
Component: rsyslogAssignee: Attila Lakatos <alakatos>
Status: CLOSED ERRATA QA Contact: Dalibor Pospíšil <dapospis>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.8CC: dapospis, rsroka
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: rsyslog-8.2102.0-15.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2209017 (view as bug list) Environment:
Last Closed: 2023-11-14 15:34:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2209017    

Description Yogendra 2023-05-03 16:56:02 UTC
Description of problem:

for Elasticsearch >= 7.3 and Opensearch >=2.0 the API has received significant changes. As consequence the RSYSLOG omelasticsearch-connector had to be updated, too. This happend at the middle of 2022, according to the statement of the main RSYSLOG developer: https://github.com/rsyslog/rsyslog/issues/4908#issuecomment-1164042133. I am not able to compare the package version of RSYSLOG included in the RHEL releases with the RSYSLOG version of the RSYSLOG main website, as RedHat uses a slightly different version name. As our company needs the new RSYSLOG connector (with RHEL 8.8) I would like to know for which RHEL version it is forseen to include a newer version of the RSYSLOG packages. Current available version on RSYSLOG website: 8.2302.0 (Feb. 2023). Current available on RHEL 9.1 iso: rsyslog-8.2102.0-105.el9. Current available on RHEL 8.7 iso: rsyslog-elasticsearch-8.2102.0-10.el8.x86_64.


Version-Release number of selected component (if applicable):

Rsyslog

How reproducible:

Always 

https://github.com/rsyslog/rsyslog/issues/4908


Steps to Reproduce:

Sample config with omelasticsearch,

    type="omelasticsearch"
    server=["localhost:9200"]
    usehttps="on"
    skipverifyhost="on"
    allowunsignedcerts="on"
    dynSearchIndex="on"
    searchIndex="special-index"

    searchType="_doc"

    bulkmode="on".




Actual results:

The log data cannot be sent to opensearch when bulkmode is turned on, with error messages like below,

{ "request": { "url": "https:\/\/localhost:9200\/_bulk", "postdata": "{\"index\":{\"_index\": \"special-2022.06.23\",\"_type\":\"_doc\"}}\n{\"time\":\"2022-06-23T16:25:36.266848+12:00\",\"timereceived\":\"2022-06-23T16:25:36.266848+12:00\",\"severity\":\"INFO\",\"tag\":\"systemd[1]\", \"msg\": \"Started System Logging Service.\", \"pname\": \"systemd\", \"host\": \"host123\", \"fromhost\": \"host123\", \"fac\": \"daemon\", \"pri\": \"30\" }\n\n" }, "reply": { "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Action\/metadata line [1] contains an unknown parameter [_type]" } ], "type": "illegal_argument_exception", "reason": "Action\/metadata line [1] contains an unknown parameter [_type]" }, "status": 400 } }


Expected results:

I use rsyslog omelasticsearch plugin to feed log to Opensearch 2.0. It works well when bulkmode is turned off. It's not practical to turn bulkmode off in production. So I expect it to work well when bulkmode is on.

Comment 1 Attila Lakatos 2023-05-11 09:26:36 UTC
After many tries, I managed to reproduce the issue with elasticsearch>=8.0. The problem lies in the API change.

Unfortunately, ES folks introduce quite big changes in the API when moving from one major to another major version. Upstream is aware of that, there have been many discussions on GitHub regarding backwards compatibility issues.

Comment 15 errata-xmlrpc 2023-11-14 15:34:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rsyslog bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6987