diff --git a/backend/src/appenlight/models/services/log.py b/backend/src/appenlight/models/services/log.py index cca2e00..548dd1a 100644 --- a/backend/src/appenlight/models/services/log.py +++ b/backend/src/appenlight/models/services/log.py @@ -103,7 +103,13 @@ class LogService(BaseService): messages = filter_settings.get('message') if messages: query['query']['filtered']['query'] = { - 'match': {"message": ' '.join(messages)}} + 'match': { + 'message': { + 'query': ' '.join(messages), + 'operator': 'and' + } + } + } return query @classmethod