All messages empty with phpLogCon 2.3.6 / pgsql

You need additional help with phplogcon, then write into this forum.

All messages empty with phpLogCon 2.3.6 / pgsql

Postby mgoetze on Wed Jul 23, 2008 4:50 pm

Hi,

I'm using rsyslog's default Template to write Syslog data into Postgresql, and configured phpLogCon as follows:

$CFG['Sources']['Source1']['ID'] = 'Source1';
$CFG['Sources']['Source1']['Name'] = 'xxx';
$CFG['Sources']['Source1']['ViewID'] = 'SYSLOG';
$CFG['Sources']['Source1']['SourceType'] = SOURCE_PDO;
$CFG['Sources']['Source1']['DBTableType'] = 'monitorware';
$CFG['Sources']['Source1']['DBType'] = DB_PGSQL;
$CFG['Sources']['Source1']['DBServer'] = 'localhost';
$CFG['Sources']['Source1']['DBName'] = 'Syslog';
$CFG['Sources']['Source1']['DBUser'] = 'phplogcon';
$CFG['Sources']['Source1']['DBPassword'] = 'xxx';
$CFG['Sources']['Source1']['DBTableName'] = 'systemevents';
$CFG['Sources']['Source1']['DBEnableRowCounting'] = false;

Due to the wonders of the ps command, I can tell that phpLogCon is able to log in to the postgresql database correctly. However, the web interface shows me a number of empty rows equal to the number of rows in the database. Any hints would be appreciated...
mgoetze
New
 
Posts: 1
Joined: Wed Jul 23, 2008 4:40 pm

phpLogCon professional services

  • Custom phpLogCon configuration?
  • Maintenance Contract?
  • Installation support?

Re: All messages empty with phpLogCon 2.3.6 / pgsql

Postby alorbach on Thu Jul 24, 2008 9:10 am

There seems to be a problem or bug within the new PDO Database Source, I will look into this today and possibly create an updated today or tomorrow.

best regards,
Andre Lorbach
User avatar
alorbach
Site Admin
 
Posts: 924
Joined: Thu Feb 13, 2003 11:55 am

Re: All messages empty with phpLogCon 2.3.6 / pgsql

Postby alorbach on Mon Jul 28, 2008 11:14 am

Hi again,

I want to inform you that I have fixed the issue of empty rows in version 2.3.8 available for download here:
http://www.phplogcon.org/downloads

best regards,
Andre Lorbach
User avatar
alorbach
Site Admin
 
Posts: 924
Joined: Thu Feb 13, 2003 11:55 am

Re: All messages empty with phpLogCon 2.3.6 / pgsql

Postby jschulz on Thu Jul 31, 2008 2:35 pm

Hi,

I am the workmate of mgoetze.

The problem still exists! There are just empty lines to see.

I restartet the postgres database with debugging output and took a look at the statement that
is executed if I request /phplogcon/index.php?sourceid=Source1. The statement is

SELECT ID, DeviceReportedTime, Facility, Priority, FromHost, SysLogTag, InfoUnitID, Message FROM systemevents ORDER BY ID DESC

The statement is correct. If I execute it on the database directly I got a lot of data.

Do you need some debug info?

Cheers,
Jonny
jschulz
New
 
Posts: 3
Joined: Thu Jul 31, 2008 2:07 pm

Re: All messages empty with phpLogCon 2.3.6 / pgsql

Postby alorbach on Thu Jul 31, 2008 2:45 pm

Hrm I guess I need to do some further testing with Postgresql then on a test machine.
I will look into this very soon and let you know when I find something.
User avatar
alorbach
Site Admin
 
Posts: 924
Joined: Thu Feb 13, 2003 11:55 am

Re: All messages empty with phpLogCon 2.3.6 / pgsql

Postby alorbach on Thu Jul 31, 2008 2:53 pm

One thing just came to my mind! Have you checked if the systemevents table is spelled like this in your database?
"SystemEvents"

phpLogCon uses lowercase "systemevents" by default (also in your case).

I am currently working on an enhanced verification system to find such error's or problems better. This will be most likely available in Version 2.5.2.

best regards,
Andre Lorbach
User avatar
alorbach
Site Admin
 
Posts: 924
Joined: Thu Feb 13, 2003 11:55 am

Re: All messages empty with phpLogCon 2.3.6 / pgsql

Postby jschulz on Thu Jul 31, 2008 3:06 pm

Code: Select all
Syslog=> \d
                      List of relations
Schema |             Name              |   Type   |  Owner 
--------+-------------------------------+----------+---------
public | systemevents                  | table    | rsyslog
public | systemevents_id_seq           | sequence | rsyslog
public | systemeventsproperties        | table    | rsyslog
public | systemeventsproperties_id_seq | sequence | rsyslog

Syslog=> select count(*) from SystemEvents;
count
-------
53957
(1 row)

Syslog=> select count(*) from systemevents;
count
-------
53957
(1 row)
jschulz
New
 
Posts: 3
Joined: Thu Jul 31, 2008 2:07 pm

Re: All messages empty with phpLogCon 2.3.6 / pgsql

Postby alorbach on Thu Jul 31, 2008 3:08 pm

Thanks for the info, it was a guess. I had a simular issue in MYSQL a few days ago.
So I am going to look into it very soon once I have finished this new feature (Which I wrote about in my previous post).

best regards,
Andre Lorbach
User avatar
alorbach
Site Admin
 
Posts: 924
Joined: Thu Feb 13, 2003 11:55 am

Re: All messages empty with phpLogCon 2.3.6 / pgsql

Postby alorbach on Fri Aug 01, 2008 1:20 pm

Hi again,

I want to inform you that Version 2.5.2 has been released and is available for download here:
http://www.phplogcon.org/downloads

If possible please try this version, it may outputs an error with more details as I have enhanced the error analysis within the logstream sources. I will do the testings with Postgresql during meantime.

best regards,
Andre Lorbach
User avatar
alorbach
Site Admin
 
Posts: 924
Joined: Thu Feb 13, 2003 11:55 am

Re: All messages empty with phpLogCon 2.3.6 / pgsql

Postby jschulz on Mon Aug 04, 2008 8:12 am

Thanks, it runs.
jschulz
New
 
Posts: 3
Joined: Thu Jul 31, 2008 2:07 pm

Google Ads



Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron