mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
93_Log2Syslog: contrib 5.2.1
git-svn-id: https://svn.fhem.de/fhem/trunk@17490 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b3a451c71f
commit
2a2da69bc5
@ -35,7 +35,7 @@ use warnings;
|
||||
|
||||
# Versions History intern:
|
||||
our %Log2Syslog_vNotesIntern = (
|
||||
"5.2.1" => "07.10.2018 setpayload of BSD-format changed",
|
||||
"5.2.1" => "08.10.2018 setpayload of BSD-format changed, commandref revised ",
|
||||
"5.2.0" => "02.10.2018 added direct help for attributes",
|
||||
"5.1.0" => "01.10.2018 new get <name> versionNotes command",
|
||||
"5.0.1" => "27.09.2018 Log2Syslog_closesock if write error:.* , delete readings code changed",
|
||||
@ -85,7 +85,7 @@ our %Log2Syslog_vNotesIntern = (
|
||||
|
||||
# Versions History extern:
|
||||
our %Log2Syslog_vNotesExtern = (
|
||||
"5.2.1" => "07.10.2018 Send format of BSD changed. The TAG-field was changed to \"IDENT[PID]:\" ",
|
||||
"5.2.1" => "08.10.2018 Send format of BSD changed. The TAG-field was changed to \"IDENT[PID]: \" ",
|
||||
"5.2.0" => "02.10.2018 direct help for attributes added",
|
||||
"5.1.0" => "29.09.2018 new get <name> versionNotes command ",
|
||||
"5.0.1" => "27.09.2018 automatic reconnect to syslog-server in case of write error ",
|
||||
@ -1759,7 +1759,7 @@ sub Log2Syslog_setpayload ($$$$$$) {
|
||||
$day =~ s/0/ / if($day =~ m/^0.*$/); # in Tagen < 10 muss 0 durch Space ersetzt werden
|
||||
my $tag = substr($ident,0, $RFC3164len{TAG}); # Länge TAG Feld begrenzen
|
||||
no warnings 'uninitialized';
|
||||
$tag = $tag."[$pid]:".$cdl; # TAG-Feld um PID und Content-Delimiter ergänzen
|
||||
$tag = $tag."[$pid]: ".$cdl; # TAG-Feld um PID und Content-Delimiter ergänzen
|
||||
$data = "<$prival>$month $day $time $myhost $tag$otp";
|
||||
use warnings;
|
||||
$data = substr($data,0, ($RFC3164len{DL}-1)); # Länge Total begrenzen
|
||||
@ -1955,9 +1955,11 @@ return;
|
||||
<ul>
|
||||
<br/>
|
||||
The additional perl modules "IO::Socket::INET" and "IO::Socket::SSL" (if SSL is used) must be installed on your system. <br>
|
||||
Install this package from cpan or by <br><br>
|
||||
Install this package from cpan or, on Debian based installations, better by: <br><br>
|
||||
|
||||
<code>sudo apt-get install libio-socket-multicast-perl</code><br>
|
||||
<code>sudo apt-get install libio-socket-ssl-perl</code><br><br>
|
||||
|
||||
<code>apt-get install libio-socket-multicast-perl (only on Debian based installations) </code><br>
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
@ -2122,7 +2124,7 @@ Aug 18 21:08:27 fhemtest.myds.me 1 2017-08-18T21:08:27.095 fhemtest.myds.me Test
|
||||
The structure of the payload differs dependent of the used logFormat. <br><br>
|
||||
|
||||
<b>logFormat IETF:</b> <br><br>
|
||||
"<PRIVAL>IETFVERS TIME MYHOST IDENT PID MID [SD-FIELD] :MESSAGE" <br><br>
|
||||
"<PRIVAL>IETFVERS TIME MYHOST IDENT PID MID [SD-FIELD] MESSAGE" <br><br>
|
||||
|
||||
<ul>
|
||||
<table>
|
||||
@ -2141,7 +2143,7 @@ Aug 18 21:08:27 fhemtest.myds.me 1 2017-08-18T21:08:27.095 fhemtest.myds.me Test
|
||||
<br>
|
||||
|
||||
<b>logFormat BSD:</b> <br><br>
|
||||
"<PRIVAL>MONTH DAY TIME MYHOST IDENT[PID]:MESSAGE" <br><br>
|
||||
"<PRIVAL>MONTH DAY TIME MYHOST IDENT[PID]: MESSAGE" <br><br>
|
||||
|
||||
<ul>
|
||||
<table>
|
||||
@ -2618,9 +2620,10 @@ $CONT = (split(">",$CONT))[1] if($CONT =~ /^<.*>.*$/);
|
||||
<ul>
|
||||
<br/>
|
||||
Es werden die Perl Module "IO::Socket::INET" und "IO::Socket::SSL" (wenn SSL benutzt) benötigt und müssen installiert sein. <br>
|
||||
Das Modul kann über CPAN oder mit <br><br>
|
||||
Das Modul kann über CPAN oder, auf Debian Linux Systemen, besser mit <br><br>
|
||||
|
||||
<code>apt-get install libio-socket-multicast-perl (auf Debian Linux Systemen) </code><br><br>
|
||||
<code>sudo apt-get install libio-socket-multicast-perl</code><br>
|
||||
<code>sudo apt-get install libio-socket-ssl-perl</code><br><br>
|
||||
|
||||
installiert werden.
|
||||
</ul>
|
||||
@ -2786,7 +2789,7 @@ Aug 18 21:08:27 fhemtest.myds.me 1 2017-08-18T21:08:27.095 fhemtest.myds.me Test
|
||||
Der Aufbau der Payload unterscheidet sich je nach verwendeten logFormat. <br><br>
|
||||
|
||||
<b>logFormat IETF:</b> <br><br>
|
||||
"<PRIVAL>IETFVERS TIME MYHOST IDENT PID MID [SD-FIELD] :MESSAGE" <br><br>
|
||||
"<PRIVAL>IETFVERS TIME MYHOST IDENT PID MID [SD-FIELD] MESSAGE" <br><br>
|
||||
|
||||
<ul>
|
||||
<table>
|
||||
@ -2805,7 +2808,7 @@ Aug 18 21:08:27 fhemtest.myds.me 1 2017-08-18T21:08:27.095 fhemtest.myds.me Test
|
||||
<br>
|
||||
|
||||
<b>logFormat BSD:</b> <br><br>
|
||||
"<PRIVAL>MONTH DAY TIME MYHOST IDENT[PID]:MESSAGE" <br><br>
|
||||
"<PRIVAL>MONTH DAY TIME MYHOST IDENT[PID]: MESSAGE" <br><br>
|
||||
|
||||
<ul>
|
||||
<table>
|
||||
|
Loading…
Reference in New Issue
Block a user