Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
Camel Lumberjack ComponentAvailable as of Camel 2.18 The Lumberjack component retrieves logs sent over the network using the Lumberjack protocol, from Filebeat for instance. The network communication can be secured with SSL. This component only supports consumer endpoints. Maven users will need to add the following dependency to their pom.xml <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-lumberjack</artifactId> <version>x.y.z</version> <!-- use the same version as your Camel core version --> </dependency> URI formatlumberjack:host lumberjack:host:port You can append query options to the URI in the following format, OptionsThe Lumberjack component has no options. The Lumberjack component supports 7 endpoint options which are listed below:
ResultThe result body is a Lumberjack Usage SamplesExample 1: Streaming the log messagesRouteBuilder builder = new RouteBuilder() { public void configure() { from("lumberjack:0.0.0.0"). // Listen on all network interfaces using the default port setBody(simple("${body[message]}")). // Select only the log message to("stream:out"); // Write it into the output stream } }; |