We have cases wherein we write a lot of log files to the host increasing the i/o on a host. Are there any good open source logging over the wire solutions.
The application language is C++ on Red Hat Linux 3.
We have cases wherein we write a lot of log files to the host increasing the i/o on a host. Are there any good open source logging over the wire solutions.
The application language is C++ on Red Hat Linux 3.
There are logging libraries that can help you. depending on your application language. But if i/o is a problem probably network bandwidth is a bigger problem.
First set of questions:
Second set of questions:
As @igalse says, there are logging libraries available. For C++, you should look at what is available at Boost, but there are undoubtedly other sources too.
For C++, Boost doesn't contain a library for logging yet. But you can use the most advanced candidate, written by John Torjo, here.
It allows to filter some of your logging (you probably need that, if the logging is so important that it becomes a performance problem) and setting different destinations, like a stream.
A very simple logging option is to use syslog and rely on (after correct configuration) the syslog daemon to forward it to a remote server.
Take a look at:
openlog()
syslog()
closelog()
and:
syslog.conf
If the I/O on the host is being impacted unnecessarily, then in my opinion you are either:
Logging to a network server isn't going to solve these problems if it has the same issue - in fact, it will make them worse if several hosts are logging to the same server.