Integrating your application¶
A lot of logging frameworks already provide handlers for logging to logstash. Just look around, maybe there already is one out there for your framework/language. Here are some examples of handlers for different languages:
PHP: monolog already comes with a formatter for Logstash. For example usage, see here
Java: using log4j with via SocketAppender.
When configuring your handler, use the canonical FQDN of your loghost as the logstash host, e.g. myapp00.gocept.net.
You will most likely have to configure some kind of listener on the logstash side. See the configure_logstash section for how to add your configuration to logstash.