Skip to content

Conversation

@TechBRSavvy
Copy link

@TechBRSavvy TechBRSavvy commented Aug 9, 2023

Currently, Kafka Rest plugin supports only Message_Key which restricts in sending some predefined string as part of it. But this doesn't provide flexibility to choose one of the field from record to be considered as key while pushing the messages to Kafka Rest.
Adding flexibility with choosing one of the field in record as Key (which internally is used for deciding partition in kafka) helps in a way that, all the co-related records are pushed to same partition.

Logic for populating Message Key in below mentioned order

  • If Message_Key_Field is defined and present in the record, use it
  • If Message_Key_Field is defined but not present in the record, look for Message_Key
  • If Message_Key is defined, use it
  • If Message_Key is also not defined, let Kafka choose the partition

Addresses # 7795


Testing
Before we can approve your change; please submit the following in a comment:

  • [N/A ] Example configuration file for the change

  • [ N/A] Debug log output from testing the change

  • [ N/A] Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • [N/A] Run local packaging test showing all targets (including any new ones) build.
  • [N/A] Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

Backporting

  • [Recommended] Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

@TechBRSavvy
Copy link
Author

@endersonmaia , @leonardo-albertovich , @fujimotos , @koleini

Can we have this reviewed?

@TechBRSavvy
Copy link
Author

@endersonmaia , @leonardo-albertovich , @fujimotos , @koleini

Ping, can we have this reviewed?

@TechBRSavvy
Copy link
Author

@endersonmaia , @leonardo-albertovich , @fujimotos , @koleini

Gentle Reminder, can we have this reviewed?

2 similar comments
@TechBRSavvy
Copy link
Author

@endersonmaia , @leonardo-albertovich , @fujimotos , @koleini

Gentle Reminder, can we have this reviewed?

@TechBRSavvy
Copy link
Author

@endersonmaia , @leonardo-albertovich , @fujimotos , @koleini

Gentle Reminder, can we have this reviewed?

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2024

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Feb 5, 2024
@TechBRSavvy
Copy link
Author

@endersonmaia , @leonardo-albertovich , @fujimotos , @koleini

Gentle Reminder, can we have this reviewed?

@github-actions github-actions bot removed the Stale label Mar 12, 2024
@TechBRSavvy
Copy link
Author

TechBRSavvy commented Mar 28, 2024

@leonardo-albertovich , @fujimotos , @koleini, @edsiper

Gentle Reminder, can we have this reviewed?

@TechBRSavvy
Copy link
Author

@leonardo-albertovich , @fujimotos , @koleini, @edsiper

Gentle Reminder, can we have this reviewed?

1 similar comment
@TechBRSavvy
Copy link
Author

@leonardo-albertovich , @fujimotos , @koleini, @edsiper

Gentle Reminder, can we have this reviewed?

@github-actions
Copy link
Contributor

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Dec 14, 2024
@github-actions github-actions bot removed the Stale label Mar 22, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2025

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Sep 6, 2025
@eschabell
Copy link

@patrick-stephens can you maybe review this for @TechBRSavvy?

@github-actions github-actions bot removed the Stale label Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants