Mutually exclusive filter/parser with K8S namespaces

To avoid having key type conflicts, I’d like to add a prefix when parsing json but have one namespace have a different prefix. Something like this:

<filter kubernetes.var.log.containers.**_kube-system_**>
    @type parser
    key_name log
    reserve_data true
    reserve_time true
    inject_key_prefix system.
    emit_invalid_record_to_error false
    <parse>
        @type json
    </parse>
</filter>

<filter kubernetes.**whateverIsNotInTheFilterAbove>
    @type parser
    key_name log
    reserve_data true
    reserve_time true
    inject_key_prefix service.
    emit_invalid_record_to_error false
    <parse>
        @type json
    </parse>
</filter>

I’m not sure what the best way to achieve this is, hopefully someone here can help :slight_smile:

Cheers