Skip to content

Raise the logging level for errors such as "Kafka publish failed with: kafka server: The requested operation is not supported by the message format version." #21577

@lucabelluccini

Description

@lucabelluccini

Describe the enhancement:

While testing Kafka output in Filebeat, the documents were not published to Kafka because of compression: gzip was not supported on Azure Event Hub for Kafka.
It was necessary to raise the logging to debug in order to get an hint to what was happening:

2020-10-02T14:34:55.443Z	DEBUG	[kafka]	kafka/client.go:291	Kafka publish failed with: kafka server: The requested operation is not supported by the message format version.
2020-10-02T14:34:55.443Z	DEBUG	[kafka]	kafka/client.go:172

Describe a specific use case for the enhancement or feature:

I do not know if this might get too verbose (I let the maintainers decide if this should be handled at higher level), but I would change the severity of:

r.client.log.Debugf("Kafka publish failed with: %+v", err)

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalledTeam:Services(Deprecated) Label for the former Integrations-Services team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions