test(inputs.syslog): Add unit-tests for long app-names (#14876)

This commit is contained in:
Sven Rebhan 2024-02-22 18:38:21 +01:00 committed by GitHub
parent c4069a4bff
commit 4dea65d1ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
47 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
expecting an app-name (from 1 to max 48 US-ASCII characters) or a nil value

View File

@ -0,0 +1 @@
syslog,facility=local4,hostname=mymachine.example.com,severity=err,source=127.0.0.1 facility_code=20i,severity_code=3i,timestamp=1065910455003000000i,version=1u 1708596337291396420

View File

@ -0,0 +1 @@
<163>1 2003-10-11T22:14:15.003Z mymachine.example.com ALongApplicationNameContainingMoreThanTheAllowed48Character - ID47 - BOM'su root' failed for lonvick on /dev/pts/8

View File

@ -0,0 +1,4 @@
[[inputs.syslog]]
server = "udp://127.0.0.1:0"
syslog_standard = "RFC5424"
best_effort = true

View File

@ -0,0 +1 @@
syslog,appname=ALongApplicationNameContainingExactly48Character,facility=local3,hostname=mymachine.example.com,severity=emerg,source=127.0.0.1 facility_code=19i,message="BOM'su root' failed for lonvick on /dev/pts/8",msgid="ID47",severity_code=0i,timestamp=1065910455003000000i,version=1u 1708596139072781296

View File

@ -0,0 +1 @@
<152>1 2003-10-11T22:14:15.003Z mymachine.example.com ALongApplicationNameContainingExactly48Character - ID47 - BOM'su root' failed for lonvick on /dev/pts/8

View File

@ -0,0 +1 @@
expecting an app-name (from 1 to max 48 US-ASCII characters) or a nil value

View File

@ -0,0 +1 @@
<163>1 2003-10-11T22:14:15.003Z mymachine.example.com ALongApplicationNameContainingMoreThanTheAllowed48Character - ID47 - BOM'su root' failed for lonvick on /dev/pts/8

View File

@ -0,0 +1,3 @@
[[inputs.syslog]]
server = "udp://127.0.0.1:0"
syslog_standard = "RFC5424"

View File

@ -0,0 +1,3 @@
[[inputs.syslog]]
server = "udp://127.0.0.1:0"
syslog_standard = "RFC5424"