Using script processor in elastic-agent integration

Need your help. I don't like that using kubernetes integration in elastic-agents we have one event_dataset for all logs: kubernetes.container_logs

I would like to split it into several. In filebeat this can be done with a script, but how to put this script into elastic-agent integration via kibana?

There is documentation, I have studied it, but something is not working. Maybe someone has encountered it and can advise?