- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8.5k
Closed
Closed
Copy link
Labels
Feature:StreamsThis is the label for the Streams ProjectThis is the label for the Streams ProjectTeam:obs-ux-logsObservability Logs User Experience TeamObservability Logs User Experience TeambugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experience
Description
The following contains filter produces an invalid esql query:
{
	"filter": {
		"field": "resource.attributes.service.name",
		"contains": "synth-service-2"
	}
}
--->
FROM logs,logs.*
      | WHERE LIKE(`resource.attributes.service.name`, "%synth-service-2%")
While the output is expected to be
FROM logs,logs.*
      | WHERE resource.attributes.service.name LIKE "*synth-service-2*"
This issue applies to contains, startsWith and endsWith
Metadata
Metadata
Assignees
Labels
Feature:StreamsThis is the label for the Streams ProjectThis is the label for the Streams ProjectTeam:obs-ux-logsObservability Logs User Experience TeamObservability Logs User Experience TeambugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experience