Create custom message parsers

General discussions here

Create custom message parsers

Postby DocBrown » Wed Nov 19, 2008 5:05 pm

Hi all,

is it currently possible to create user defined message parsers with php logcon,e.g. for log4j?

Any hint appriciated
DocBrown
Avarage
 
Posts: 18
Joined: Wed Nov 12, 2008 12:58 pm

phpLogCon professional services

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

Re: Create custom message parsers

Postby alorbach » Wed Nov 19, 2008 5:38 pm

Yes it is, there is no documentation about it yet but it is possible.
If you take a look to the classes/msgparsers/ directory, you will find some standard parsers which you can use as template to create your own parsers.

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

Re: Create custom message parsers

Postby abalzi » Wed Feb 25, 2009 8:06 pm

Hi

I'm trying syslog-ng and phplogconf as GUI.
I don't know PHP and I know very little about programming, the lack of the phplogcon documentation don't help me much.
With Syslog-ng can I customize the output of the log files format.
There is a format that can I define on syslog-ng so that phplogcon complete columns correctly (example Facility, Severty, Tag?
Can someone help me?
abalzi
New
 
Posts: 5
Joined: Fri Feb 20, 2009 1:34 pm

Re: Create custom message parsers

Postby alorbach » Thu Feb 26, 2009 2:29 pm

If you use and install the phpLogCon UserDB, you will have a full featured Admin Interface available which you can use to create personal views.
To convert an existing installation, see the following link:
http://wiki.rsyslog.com/index.php/How_t ... llation%3F


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

Re: Create custom message parsers

Postby abalzi » Thu Feb 26, 2009 7:35 pm

Sorry, I have not been explained. I do not want to change the UserDB.
I want to change the association values in the columns of the DB with the view as SYSLOG.
The phpLogCon uses a schema monitorware like. In this schema, I added 2 columns (ProcessID and Program).
How can I can associate the values of these columns to the SYSLOG view?
I don't know PHP and I know very little about programming, the lack of the phplogcon documentation don't help me much.
With Syslog-ng can I customize the output of the log files format to the database.
abalzi
New
 
Posts: 5
Joined: Fri Feb 20, 2009 1:34 pm

Re: Create custom message parsers

Postby alorbach » Fri Feb 27, 2009 3:31 pm

It is very difficult to do this stuff manually and hardcoded, and requires php and properly some html skills.
This is actually the reason why there is a UserDB System including an admin interface for this.

You can manually add new types of fields in the include/constants_logstream.php code file, but please do not expect me to guide you through all the tiny details, when there is a fully featured user interface to do so. Just look into the include/constants_logstream.php file, you will see how the fields are assigned and configured.

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

Re: Create custom message parsers

Postby abalzi » Fri Feb 27, 2009 6:41 pm

Thanks, I try to understand how to modify the code.
abalzi
New
 
Posts: 5
Joined: Fri Feb 20, 2009 1:34 pm

Google Ads



Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron