From: Denis L. <den...@gm...> - 2008-04-28 23:39:16
|
Hi there, Well, I was just beginning playing around with log4perl one week ago. I used to work with my own perl native libs for logging. It was not so efficient than yours but brings a solution to most of my developments. I found the log4perl very handy and convenient for my dev that I can't keep playing with it now! My question today is quite simple : What about OLF support ? I would like to use log4perl in order to generate logs compliant with Open Log Format definition. Currently, I use a dedicated layout in order to format my log records. It works fine but I have only one thing I can not solve for the moment. Who can I generate an OLF compliant header for my log ? Well the OLF specifications gives the following description for a compliant OLF header : #Software: eIQ Open Log Format (OLF) #Version: 1.1 #Date: 02-18-2007 12:14:25 300 #Fields: date time gmt-offset internalIP externalIP virtualdevice device-id type subtype priority prioritycode direction username eventcode eventcategory protocol rule status count action sent-bytes recvd-bytes src-info dst-info vpn-info virus-info attack-info webfilter-info spam-info config-info message Custom-data Nativelog The #Version line gives the version of OLF, which should always be 1.1. NOTE: Software that processes OLF should check this line, and reject the file if the version is not one it understands. The #Date line gives the date and time the log file was started and the time zone (in GMT minutes). The #Fields line lists the fields of each line, as a reminder to the reader. NOTE: The fields may How can I manage these requirements with log4perl? If not available yet, did you plan to support this format in further version of your lib? Thank you by advance for your help, And one more time, thank you for this very handy and flexible lib. Denis LAMBRET Den...@gm... |