Hi All,
We are using the following template in our C-based Linux application logging.
The "HOSTNAME" property is updated in the message without any issues if the Linux hostname is purely Alphanumeric.
However, if the Linux hostname is updated to an IP address format or any string with '.' character, the message is only updated with the part of the string before the dot character.
As a try, I tried with a few other special characters in the hostname. I observed a mixed behavior - for example: '#' was accepted whereas '$' was not.
$template rfc3164_local,"<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
Could you please tell us if there is any extra expression required for the property to take the string as-is from Linux's hostname?
Any leads would be much appreciated.
Thanks in advance!
Best Regards
Siva Muthumurugan
Sr. Software Engineer
[cid:image001.png@01DA0CD9.4F19D320]
Tech Support: +1.844.475.8324 (844-iS5-TECH)
Website: www.is5com.com<http://www.is5com.com/>
E-mail: sivamuthumurugan@is5com.com<mailto:sivamuthumurugan@is5com.com>
Click on the links below "Like" & "Follow Us" on our Social Feeds for the latest News!!!
[cid:image002.png@01DA0CD9.4F19D320]<http://is5com.com/>[D2D4C898]<https://www.linkedin.com/in/natalie-zavaglia-1b135210b/> [Image result for facebook] <https://www.facebook.com/IS5-Communications-Inc-208709785967080/> [Image result for twitter] <https://twitter.com/is5com?lang=en> [cid:image006.png@01DA0CD9.4F19D320] <https://www.youtube.com/channel/UCgU3yoYhRHFUk3bqJNPvlIw>
Confidentiality Notice:
This message is intended only for the named recipients. This message may contain information that is confidential and/or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.
We are using the following template in our C-based Linux application logging.
The "HOSTNAME" property is updated in the message without any issues if the Linux hostname is purely Alphanumeric.
However, if the Linux hostname is updated to an IP address format or any string with '.' character, the message is only updated with the part of the string before the dot character.
As a try, I tried with a few other special characters in the hostname. I observed a mixed behavior - for example: '#' was accepted whereas '$' was not.
$template rfc3164_local,"<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
Could you please tell us if there is any extra expression required for the property to take the string as-is from Linux's hostname?
Any leads would be much appreciated.
Thanks in advance!
Best Regards
Siva Muthumurugan
Sr. Software Engineer
[cid:image001.png@01DA0CD9.4F19D320]
Tech Support: +1.844.475.8324 (844-iS5-TECH)
Website: www.is5com.com<http://www.is5com.com/>
E-mail: sivamuthumurugan@is5com.com<mailto:sivamuthumurugan@is5com.com>
Click on the links below "Like" & "Follow Us" on our Social Feeds for the latest News!!!
[cid:image002.png@01DA0CD9.4F19D320]<http://is5com.com/>[D2D4C898]<https://www.linkedin.com/in/natalie-zavaglia-1b135210b/> [Image result for facebook] <https://www.facebook.com/IS5-Communications-Inc-208709785967080/> [Image result for twitter] <https://twitter.com/is5com?lang=en> [cid:image006.png@01DA0CD9.4F19D320] <https://www.youtube.com/channel/UCgU3yoYhRHFUk3bqJNPvlIw>
Confidentiality Notice:
This message is intended only for the named recipients. This message may contain information that is confidential and/or exempt from disclosure under applicable law. Any dissemination or copying of this message by anyone other than a named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify us immediately, and permanently destroy this message and any copies you may have. Warning: Email may not be secure unless properly encrypted.