SysLog2ODBC-0.4
所属分类:数据库编程
开发工具:Visual C++
文件大小:55KB
下载次数:20
上传日期:2006-04-25 10:02:56
上 传 者:
金陵书生
说明: 演示在VC++中直接使用ODBC接口来访问数据库。是个完整的项目。
(demonstration in VC direct use ODBC interface to access a database. Yes complete the project.)
文件列表:
CHANGELOG.txt (634, 2003-11-05)
COPYING (18349, 2003-10-11)
src (0, 2003-11-05)
src\MSG00001.bin (28, 2003-10-18)
src\resource.h (415, 2003-09-28)
src\service.cpp (12498, 2003-10-20)
src\StdAfx.cpp (298, 2003-09-15)
src\StdAfx.h (667, 2003-09-15)
src\SysLog2ODBC.cpp (37743, 2003-11-05)
src\SysLog2ODBC.dsp (4753, 2003-10-18)
src\SysLog2ODBC.dsw (545, 2003-09-15)
src\SysLog2ODBC.h (3660, 2003-10-24)
src\SysLog2ODBC.rc (3248, 2003-11-05)
src\SysLog2ODBC.res (92, 2003-09-28)
SysLog2ODBC.exe (57344, 2003-11-05)
syslog2odbc.ini (6018, 2003-11-04)
SysLog2ODBC SysLog server with ODBC logging facility
================================================================
SysLog2ODBC 0.4, 2003-11-05
Copyright 2003, Pier Carlo CHIODI - All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
Description:
============
This program runs as a service under Windows 2000 and Windows
2003.
It starts a syslog server, listening on a configurable UDP
port, and logs every packet to ODBC, using a custom SQL
statement.
Example:
You can setup SysLog2ODBC to store data in a mySQL database:
ConnectionString=DSN=SysLogMySQL
SQLStatement=INSERT INTO SysLogData( Msg, SenderIP, ReceivedAt ) VALUES ( ?, ?, NOW() )
Param1=MSG
Param2=SENDERDEVICE_IP
For each syslog message it receives, SysLog2ODBC executes a SQL
statement like this:
INSERT INTO SysLogData( Msg, SenderIP, ReceivedAt ) VALUES ( 'This is a syslog message!', '192.168.0.1', NOW() )
It can handle many values: the sender IP address (and port), the
priority field (as stated in RFC31***), the severity and the
facility, both in numeric and in text mode.
See "Configuration" for more details.
SysLog2ODBC runs 2 different threads (the syslog server and the
ODBC writer), using a FIFO queue to store messages that are to
be written in the db.
Installation:
=============
You can install the service executing:
SysLog2ODBC -i
The service will be started automatically by the Service Control
Manager during system startup. You can start and stop the
service manually from the Services Control Panel.
Uninstall:
==========
You can remove the service executing:
SysLog2ODBC -u
Stop the service before removing it!
Synopsis:
=========
SysLog2ODBC
Commands:
-c Console mode; runs SysLog2ODBC without installing it as
as a service. Useful to test your configuration.
-i Installs the service
-u Removes the service
-h Shows the help
Configuration:
==============
All configuration details and examples are in SysLog2ODBC.ini
file.
To run SysLog2ODBC you have to configure at least the [ODBC]
section. Other sections have rational default values.
Output and log files:
=====================
SysLog2ODBC logs ITS OWN ERROR OR WARNING MESSAGES to Event Log.
If you run it in console mode it logs them to stderr too.
You can let it to log its own messages to a file too (see
Configuration).
At startup, when Event Log or others logging facilities are not
enabled, it logs errors to "SysLog2ODBC-servicelog.log", in its
own directory. This file is overwritten at each start-up of
the program.
近期下载者:
相关文件:
收藏者: