[Security Solution][Detection Engine] fixes ES|QL metadata validation error text (#188191)

## Summary

Removes deprecated square brackets from **metadata** operator in
validation error text

WAS

```
For example: FROM logs* [metadata _id, _version, _index]

```

AFTER

```
For example: FROM logs* metadata _id, _version, _index
```

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
This commit is contained in:
Vitalii Dmyterko 2024-07-17 12:32:27 +01:00 committed by GitHub
parent 3ae4111a77
commit 92634f40a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ export const esqlValidationErrorMessage = (message: string) =>
export const ESQL_VALIDATION_MISSING_METADATA_OPERATOR_IN_QUERY_ERROR = i18n.translate(
'xpack.securitySolution.detectionEngine.esqlValidation.missingMetadataOperatorInQueryError',
{
defaultMessage: `Queries that dont use the STATS...BY function (non-aggregating queries) must include the "metadata _id, _version, _index" operator after the source command. For example: FROM logs* [metadata _id, _version, _index].`,
defaultMessage: `Queries that dont use the STATS...BY function (non-aggregating queries) must include the "metadata _id, _version, _index" operator after the source command. For example: FROM logs* metadata _id, _version, _index.`,
}
);