test(inputs.syslog): Add unit-tests for long app-names (#14876)
This commit is contained in:
parent
c4069a4bff
commit
4dea65d1ea
|
|
@ -0,0 +1 @@
|
|||
expecting an app-name (from 1 to max 48 US-ASCII characters) or a nil value
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[[inputs.syslog]]
|
||||
server = "udp://127.0.0.1:0"
|
||||
syslog_standard = "RFC5424"
|
||||
best_effort = true
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1 @@
|
|||
expecting an app-name (from 1 to max 48 US-ASCII characters) or a nil value
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[[inputs.syslog]]
|
||||
server = "udp://127.0.0.1:0"
|
||||
syslog_standard = "RFC5424"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[[inputs.syslog]]
|
||||
server = "udp://127.0.0.1:0"
|
||||
syslog_standard = "RFC5424"
|
||||
Loading…
Reference in New Issue