Can syslog store logs in a database instead of files?

  • Thread starter Thread starter Deleted member 65953
  • Start date Start date
D

Deleted member 65953

Guest
Is it possible for FreeBSD's syslog to store log entries inside a database (e.g. SQLite or PostgreSQL) instead of in plain text files? Or must I replace FreeBSD's syslog with another syslog implementation that supports storing log entries inside a database?
 
Try pkg install psearch portell, then psearch -c sysutils -s syslog and then portell syslog-ng. Et voilà! There's gold in them thar networks...
 
Note that support for various databases is off by default on sysutils/syslog-ng. So the package doesn't have them enabled.

Code:
MONGO=off: MongoDB support
REDIS=off: Build with Redis support
SQL=off: Build with database (libdbi) support

sysutls/rsyslog8 (commonly used on RHEL and variants) is also an alternative but that also has all database support off by default:
Code:
DBI=off: LibDBI output module for rsyslog
ELASTIC=off: Elasticsearch module for rsyslog
MYSQL=off: MySQL output module for rsyslog
PGSQL=off: PostgreSQL output module for rsyslog
 
Back
Top