Re: Sending to Syslog

2014-12-16 Thread mtod09
Ok I have the solution now.

I added sync=false to the uri

 

It was using request / reply model and waiting for a response.

Thanks for all the help.

Mike



--
View this message in context: 
http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760780.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Sending to Syslog

2014-12-16 Thread Claus Ibsen
Hi

When you get this kind of error it can indicate mixed versions.

Can you make sure the version of the Camel JARs are the same version
as the version of Camel that was shipped with ActiveMQ.


On Tue, Dec 16, 2014 at 7:28 PM, mtod09  wrote:
> I have it working I guess I was missing some more Jar's.
>
> Interesting the 1st message seems to work but the second one times out then
> works.
>
> Error Message:
>
> ERROR | Failed delivery for (MessageId:
> queue_syslogMessages_ID_FM-WLTP082-60537-1418754256058-7_1_1_1_1 on
> ExchangeId: ID-FM-WLTP082-60535-1418754255614-0-1). Exhausted after delivery
> attempt: 1 caught: org.apache.camel.ExchangeTimed OutException: The OUT
> message was not received within: 3 millis.
> Exchange[JmsMessage[JmsMessageID:
> ID:FM-WLTP082-60537-1418754256058-7:1:1:1:1]]
>
> I'm not sure why this would have an issue both systems are local.
>
> Thanks
>
> Mike
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760776.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/


Re: Sending to Syslog

2014-12-16 Thread mtod09
I have it working I guess I was missing some more Jar's.

Interesting the 1st message seems to work but the second one times out then
works.

Error Message:

ERROR | Failed delivery for (MessageId:
queue_syslogMessages_ID_FM-WLTP082-60537-1418754256058-7_1_1_1_1 on
ExchangeId: ID-FM-WLTP082-60535-1418754255614-0-1). Exhausted after delivery
attempt: 1 caught: org.apache.camel.ExchangeTimed OutException: The OUT
message was not received within: 3 millis.
Exchange[JmsMessage[JmsMessageID:
ID:FM-WLTP082-60537-1418754256058-7:1:1:1:1]]

I'm not sure why this would have an issue both systems are local.

Thanks 

Mike




--
View this message in context: 
http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760776.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Sending to Syslog

2014-12-16 Thread mtod09
Thanks

I have added the Jar's things are looking better.
The route is running now when I send it a formatted message I get the
following error:

*Message:* <2>Jul 10 12:00:00 192.168.1.1 SyslogGen MESSAGE TEXT

ERROR | Failed delivery for (MessageId:
ID:FM-WLTP082-56545-1418751719052-7:1:1:1:1 on ExchangeId:
ID-FM-WLTP082-56542-1418751718711-0-1). Exhausted after delivery attempt: 1
caught: org.apache.camel.TypeConversionException: Error during type
conversion from type: java.lang.String to the required type:
org.apache.camel.component.syslog.SyslogMessage with value <2>Jul 10
12:00:00 192.168.1.1 SyslogGen MESSAGE TEXT due java.lang.NoSuchMethodError:
org.apache.camel.component.syslog.SyslogMessage.setTimestamp(Ljava/util/Calendar;)V


Seems like I'm missing something.


My Route:




http://www.springframework.org/schema/beans";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xmlns:camel="http://camel.apache.org/schema/spring";
   xsi:schemaLocation="
   http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
   http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>

http://camel.apache.org/schema/spring";>















Thanks

Mike



--
View this message in context: 
http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760775.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Sending to Syslog

2014-12-14 Thread Claus Ibsen
Hi

You need to add JARs to the lib/camel directory of ActiveMQ

camel-syslog
camel-netty 3.9.4
commons-pool 1.6

camel-mina
mina 1.1.7



On Fri, Dec 12, 2014 at 4:33 PM, mtod09  wrote:
> I think I'm seeing a pattern.
>
> I thought I could do this using just Spring XML and no code.
>
> I'm not a Java programmer so I was hoping to use Spring XML to do all this
> work.
>
> Thanks
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760636.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/


Re: Sending to Syslog

2014-12-12 Thread mtod09
I think I'm seeing a pattern.

I thought I could do this using just Spring XML and no code.

I'm not a Java programmer so I was hoping to use Spring XML to do all this
work.

Thanks




--
View this message in context: 
http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760636.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Sending to Syslog

2014-12-11 Thread Daniel Pocock
On 12/12/14 06:57, Taariq Levack wrote:
> Hi Mike
>
> 2.14.0 camel-activemq is using the 5.10 ActiveMQ client.
>
> The doc you linked to earlier shows the dependency on camel-syslog, with
> maven you just include camel-syslog as a dependency and the data format is
> defined in there, along with it's dependencies.
> If you're not using maven, you need to check which dependencies to include.
>
> Try the archetype[1] to generate the ActiveMQ project and then add the
> camel-syslog dependency to the pom as well, and replace the sample camel
> context with your own and it should work.

I recently sponsored the LogAnalyzer package in Debian/Ubuntu and I
personally use it with a MongoDB backend.  If you are feeding your Camel
Syslog data into a similar platform for analysis I'd be interested in
any feedback you have.  I wrote a brief blog about how to make it work
just using the packages:

http://danielpocock.com/loganalyzer-rsyslog-mongodb-wheezy-backports



Re: Sending to Syslog

2014-12-11 Thread Taariq Levack
Hi Mike

2.14.0 camel-activemq is using the 5.10 ActiveMQ client.

The doc you linked to earlier shows the dependency on camel-syslog, with
maven you just include camel-syslog as a dependency and the data format is
defined in there, along with it's dependencies.
If you're not using maven, you need to check which dependencies to include.

Try the archetype[1] to generate the ActiveMQ project and then add the
camel-syslog dependency to the pom as well, and replace the sample camel
context with your own and it should work.

[1] http://camel.apache.org/camel-maven-archetypes.html


Taariq

On Thu, Dec 11, 2014 at 9:02 PM, mtod09  wrote:
>
> Thanks for the response.
>
> I get errors when I try using the dataFormats element.
>  
>  
>  
>
> Error:  "because of Data format 'syslog' could not be created"
>
> Seems like there is a Jar missing but I saw no reference to it in the
> documentation.
> Is there a specific JAR required?
>
> I'm on ActiveMQ 5.10 not sure what version of Camel that uses.
>
> Mike
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760596.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: Sending to Syslog

2014-12-11 Thread mtod09
Thanks for the response.

I get errors when I try using the dataFormats element.
  
  
  

Error:  "because of Data format 'syslog' could not be created"  

Seems like there is a Jar missing but I saw no reference to it in the
documentation.
Is there a specific JAR required?

I'm on ActiveMQ 5.10 not sure what version of Camel that uses.

Mike




--
View this message in context: 
http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760596.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Sending to Syslog

2014-12-10 Thread Claus Ibsen
Hi

Isn't there more details about why syslog cannot be created? Also do
you have the JARs on the classpath for it? And what version of Camel
do you use?

On Wed, Dec 10, 2014 at 7:16 PM, mtod09  wrote:
> I would like to setup a ActiveMQ queue for syslog messages and use Camel to
> send to the Syslog Server.
>
> I looked at the following link but I'm unable to get this to work.
>
> http://camel.apache.org/syslog.html
>
> I'm using Spring for the configuration.
>
>xmlns="http://www.springframework.org/schema/beans";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>   http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
>   http://activemq.apache.org/schema/core
> http://activemq.apache.org/schema/core/activemq-core.xsd";>
>
>
>  class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
> 
> 
> file:${activemq.conf}/credentials.properties
> 
> 
>
>  class="org.apache.camel.builder.DeadLetterChannelBuilder">
> 
>  ref="myRedeliveryPolicyConfig"/>
> 
>
>  class="org.apache.camel.processor.RedeliveryPolicy">
> 
> 
> 
>
>  xmlns="http://camel.apache.org/schema/spring";
> xmlns:km="http://xsdrepo.foundationmedicine.com/messaging/esb";>
> 
> 
> 
> 
> 
> 
> 
> 
>     
> 
>
> I keep getting an error loading the datatype.
>
> "because of Data format 'syslog' could not be created"
>
> Any help would be appreciated.
>
> Mike
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/


Sending to Syslog

2014-12-10 Thread mtod09
I would like to setup a ActiveMQ queue for syslog messages and use Camel to
send to the Syslog Server.

I looked at the following link but I'm unable to get this to work.

http://camel.apache.org/syslog.html

I'm using Spring for the configuration.

http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
  http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd";>





file:${activemq.conf}/credentials.properties













http://camel.apache.org/schema/spring";
xmlns:km="http://xsdrepo.foundationmedicine.com/messaging/esb";> 











I keep getting an error loading the datatype.

"because of Data format 'syslog' could not be created"

Any help would be appreciated.

Mike







--
View this message in context: 
http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517.html
Sent from the Camel - Users mailing list archive at Nabble.com.