0

I want to create a database of my proxy-server log messages and then modify and change them then finally send them to syslog-ng!!

Is it possible?

Morteza
  • 3
  • 2
  • @marsh-wiggle ,I know that,but my problem is to send database to syslog-ng!! – Morteza Jan 21 '19 at 09:21
  • My question is obvious, i can send my access.log logs from squid with [log_to_db](http://manpages.ubuntu.com/manpages/bionic/man8/log_db_daemon.8.html) to mysql and then i want to send them to syslog-ng,but i don't know how! – Morteza Jan 21 '19 at 14:46

1 Answers1

0

Since you are talking about the access.log file, I think it would be easier to read this file with syslog-ng, process them as you want, and then send them to sql from syslog-ng. I'd recommend checking the syslog-ng docs for a start.

Robert Fekete
  • 552
  • 1
  • 3
  • 6
  • But i want to add some field to those logs. in this way you suggested i cant do that – Morteza Jan 22 '19 at 13:05
  • Well, it depends on the fields and where you get the data to those fields. syslog-ng can be very flexible, so you might be able to do it, but it depends on exactly what you are trying to achieve. – Robert Fekete Jan 23 '19 at 08:31