Logstash Filtering logs

You can use conditionals in the output section. See here for an example.