Ring buffered Log into file or Db
Hi All, I got a limited system so i need ring buffered logging for protect disk space. I did some research but i could not found the answer. Does syslog-ng support ring buffer for logging to file or db ? Best Regards, Yigit
Hello, Currently there is no ring buffer destination either utilizing the disk nor the memory; as it cause message loss it was not a demanded feature. Although it would be an interesting thing to create. If using python is acceptable you could get some python lib to solve this and plug that into syslog-ng; just to get the feeling to use syslog-ng. Also I am not sure about sqlite if there is some retention policy able to help you, but if so syslog-ng can save logs to sqlite db. Depending on your usecase; if you want to both store logs locally and forward them somewhere via network. There is a disk based queue in syslog-ng, which if it cannot send the messages over network saves the data to disk within the configured size limit. -- Kokan ________________________________________ From: syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of Yiğit YAŞAR <y.yasar92@gmail.com> Sent: 13 June 2019 10:58 To: syslog-ng@lists.balabit.hu Subject: [syslog-ng] Ring buffered Log into file or Db CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe. Hi All, I got a limited system so i need ring buffered logging for protect disk space. I did some research but i could not found the answer. Does syslog-ng support ring buffer for logging to file or db ? Best Regards, Yigit
participants (2)
-
Peter Kokai (pkokai)
-
Yiğit YAŞAR