How to filter only error logs using filebeat

Hello @Mario_Castro,
But isn't that solution for logs that start with the word ERROR INFO or DEBUG? What do I do if there is a timestamp in the beginning?
Thank You.