[syslog-ng] Dumping syslog-ng log files to mysql db

Gergely Nagy algernon at balabit.hu
Thu Feb 2 15:26:13 CET 2012


Anup Shetty <anupdshetty at gmail.com> writes:

> If I configure the source to be the local log file that has logs collected
> from devices over the network and the destination to be the DB, would I be
> loosing the source IP address when I log these to the DB and instead get
> the source of the message to be localhost or 127.0.0.1 instead of the
> original source?

Depends on how you configure the destination. syslog-ng will put
whatever you tell it to into the source address field of your database
table. If you choose to put the original IP, as extracted from the log
files, then you won't loose it.

-- 
|8]



More information about the syslog-ng mailing list