How to use 'AND' in Logstash?

If you don't care about the ordering of them you can do

if "department=technology" in [message] and "space=dev" in [message] { ... }

but that won't distinguish between "space=dev" and "nospace=development" which might not be good enough for your needs.