Closed kris-watts-gravwell closed 4 months ago
It breaks down the hostname into dashes which means you can't use the hostname
Not break on dashes
current regex is \w+ but it should be ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$
\w+
^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$
This should be changed on both syslog and linux syslog kits
What are the steps to reproduce this issue?
What happens?
It breaks down the hostname into dashes which means you can't use the hostname
What were you expecting to happen?
Not break on dashes
Any other comments?
current regex is
\w+
but it should be^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$
This should be changed on both syslog and linux syslog kits