On 16 May 2015 at 14:40, nickdu <
nick.p...@gmail.com> wrote:
> Has anyone implemented centralized logging in a PaaS/cloud environment? One
> thought is to make use of the common logging solutions like log4j and then
> periodically ftp log files to a central server where they can be processed.
> Processing might consist of sending the logs to HDFS or splunk which would
> allow for analytics.
One option: Write your logs to syslog, configure the local syslog
daemon to forward to the central logging server (which can be splunk
or anything else that is designed to work with syslog). I think you
can choose UDP or TCP. No need for ftp or any custom log transports.
syslog daemons also tend to have flood protection in case a process
gets stuck spamming out the same log message indefinitely.
If you have an ELK stack somewhere (elasticsearch/logstash/kibana),
there is
https://github.com/elastic/logstash-forwarder
Joel