Elastic agent input filtering

I want to filter the input during elasticsearch intergration with agent policy . Means i want only to collect the log.level == Error. How to do it in fleet server.