All,
I am having a last issue (I hope) before the syslog plugin is fully functional. I am logging with rsyslog, this is the entry in the database:
| local6 | notice | 2012-03-01 | 13:06:32 | RASserver | Group <SSLPolicy> User <philip> IP <10.20.30.40> SVC Message: 16/NOTICE: The user has requested to disconnect the connection..
However when the syslog plugin is displaying the data from the database, it filters out the group and username:
RASserver 2012-03-01 13:06:32 Group User IP <10.20.30.40> SVC Message: 16/NOTICE: The user has requested to disconnect the connection.. Local6 Notice
Maybe syslog plugin parses that as a wildcard? Any ideas?
Thanks,
Philip
edit:
An export is working properly:
RASserver,"Local6","Notice","2012-03-01 13:06:32"," Group <SSLPolicy> User <philip> IP <10.20.30.40> SVC Message: 16/NOTICE: The user has requested to disconnect the connection.."
edit2:
The browser considers the policy and user as html code:
<td> Group <SSLPolicy> User <philip> IP <10.20.30.40> SVC Message: 16/NOTICE: The user has requested to disconnect the connection..</td>
Strange that the IP address is not considered as HTML... Anything in the code that I could change to get this displayed properly?
Syslog plugin not displaying complete message
Moderators: Developers, Moderators
Re: Syslog plugin not displaying complete message
As a workaround, try to add this code into around line 1290:philipz wrote: edit2:
The browser considers the policy and user as html code:
<td> Group <SSLPolicy> User <philip> IP <10.20.30.40> SVC Message: 16/NOTICE: The user has requested to disconnect the connection..</td>
Strange that the IP address is not considered as HTML... Anything in the code that I could change to get this displayed properly?
Code: Select all
if (sizeof($syslog_messages) > 0) {
foreach ($syslog_messages as $syslog_message) {
$syslog_message["message"] = htmlspecialchars($syslog_message["message"]); // <-- THIS LINE
$title = ...
Re: Syslog plugin not displaying complete message
Edit:noname wrote: As a workaround, try to add this code into around line 1290:But unfortunately it doesn't work on tooltip..Code: Select all
if (sizeof($syslog_messages) > 0) { foreach ($syslog_messages as $syslog_message) { $syslog_message["message"] = htmlspecialchars($syslog_message["message"]); // <-- THIS LINE $title = ...
I just implemented it again, it works now, thanks for the fix, really appreciated!
Who is online
Users browsing this forum: No registered users and 3 guests