Skip to content

message separator for consume operation #277

@Winand

Description

@Winand

I want to filter multiline messages by substring. Now I use key-value separator to tell awk where a new message begins, because my keys are empty. But I think this is not a robust solution.

DATE="2025-07-06T04|2025-07-06T07"
kafkactl consume my_topic --from-beginning --exit -k -s '~~' | awk "/$DATE/" RS='~~' ORS='\n\n'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions