Make path for message @timestamp format configurable. Sanitize type field before using it as a path