Naming restrictions

MDE restricts the allowed characters for the name of an entity. The restrictions are enforced to ensure compatibility. For example, when Type names are used to create underlying BigQuery tables.

Naming restrictions are applicable when you create any of the following entities:

  • Tags
  • Message Classes
  • Parsers
  • Types
  • Metadata Buckets

Restrictions for tag names

The tag names can contain the following:

  • Up to 255 characters.
  • Letters (uppercase and lowercase), numbers, and the following special characters: -!*._()
  • The following regular expression is used for validation: ^[A-Za-z0-9\\-_\\$\\.\\!\\*\\(\\)]{1,255}$

Restrictions for message class, parser, type and metadata bucket names

The message class, parser, type and metadata bucket names can contain the following:

  • Up to 255 characters.
  • Letters (uppercase or lowercase), numbers, and the following special characters: -_
  • The following regular expression is used for validation: ^[a-z][a-z0-9\\-_]{1,255}$

Errors

If you try to create an entity violating the naming restrictions you will get a 400 error.

Whistle help

In the parsers you can use the mde::sanitizeTagName() function to ensure that your name is sanitized. For more information, see Whistle MDE functions.