mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
93_Log2Syslog: contrib 5.12.2
git-svn-id: https://svn.fhem.de/fhem/trunk@21946 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
de337dcba2
commit
8806f938f0
@ -570,7 +570,7 @@ sub Read { ## no critic 'comple
|
|||||||
|
|
||||||
if($data) { # parse Payload
|
if($data) { # parse Payload
|
||||||
my (@load,$ocount,$msg,$tail);
|
my (@load,$ocount,$msg,$tail);
|
||||||
if($data =~ /^(?<ocount>(\d+))\s(?<tail>(.*))/sx) { # Syslog Sätze mit Octet Count -> Transmission of Syslog Messages over TCP https://tools.ietf.org/html/rfc6587
|
if($data =~ /^(?<ocount>(\d+?))\s(?<tail>(.*))/sx) { # Syslog Sätze mit Octet Count -> Transmission of Syslog Messages over TCP https://tools.ietf.org/html/rfc6587
|
||||||
Log3slog ($hash, 4, "Log2Syslog $name - Datagramm with Octet Count detected - prepare message for Parsing ... \n");
|
Log3slog ($hash, 4, "Log2Syslog $name - Datagramm with Octet Count detected - prepare message for Parsing ... \n");
|
||||||
use bytes;
|
use bytes;
|
||||||
my $i = 0;
|
my $i = 0;
|
||||||
@ -589,7 +589,7 @@ sub Read { ## no critic 'comple
|
|||||||
Log3slog ($hash, 5, "Log2Syslog $name -> LENGTH_MSG$i: ".length($msg));
|
Log3slog ($hash, 5, "Log2Syslog $name -> LENGTH_MSG$i: ".length($msg));
|
||||||
Log3slog ($hash, 5, "Log2Syslog $name -> TAIL$i : $tail");
|
Log3slog ($hash, 5, "Log2Syslog $name -> TAIL$i : $tail");
|
||||||
|
|
||||||
while($tail && $tail =~ /^(?<ocount>(\d+))\s(?<tail>(.*))/sx) {
|
while($tail && $tail =~ /^(?<ocount>(\d+?))\s(?<tail>(.*))/sx) {
|
||||||
$i++;
|
$i++;
|
||||||
$ocount = $+{ocount};
|
$ocount = $+{ocount};
|
||||||
$tail = $+{tail};
|
$tail = $+{tail};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user