I'm getting an exception and I'm trying to determine what's causing it but having some troubles with how to go about this.
INFO [2015-07-08 06:21:39,872] defaultEventExecutorGroup-2-3 - riemann.config - #riemann.codec.Event{:host mulcher, :service total_messages_per_second, :state nil, :description 2015-07-07 20:21:01 W3SVC1 BNE001TP 203.147.172.225 GET /wc_test, :metric 1, :tags [CatchAll], :time 20:21:01, :ttl 60.0, :cs-method GET, :SourceModuleName IISlogIn, :_id c65bbdc1-24e5-11e5-8a79-005056a26fe8, :sc-win32-status 0, :date 2015-07-07, :c-ip 210.247.233.3, :facility IIS, :s-sitename W3SVC1, :gl2_source_input 546e896be4b09f86f5596d67, :cs-version HTTP/1.0, :s-computername BNE001TP, :source BNE001TP, :s-ip 203.147.172.225, :level 6, :time-taken 15, :SourceModuleType im_file, :gl2_source_node f69eb759-ab20-4616-b1e6-334ab8a4ee33, :EventReceivedTime 2015-07-08 06:21:34, :sc-status 200, :sc-bytes 613, :version 1.0, :timestamp 2015-07-07T10:21:01.000Z, :SourceName IIS, :sc-substatus 0, :full_message 2015-07-07 20:21:01 W3SVC1 BNE001TP 203.147.172.225 GET /wc_test/hello.asp - 80 - 210.247.233.3 HTTP/1.0 - - - - 200 0 0 613 34 15, :cs-uri-stem /wc_test/hello.asp, :cs-bytes 34, :message 2015-07-07 20:21:01 W3SVC1 BNE001TP 203.147.172.225 GET /wc_test, :s-port 80}
WARN [2015-07-08 06:21:39,873] defaultEventExecutorGroup-2-3 - riemann.streams - riemann.streams$rate$rate_SINGLEQUOTE___4322@35b961eb threw
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
at clojure.lang.Numbers.add(Numbers.java:126)
at riemann.streams$periodically_until_expired$stream__4021.invoke(streams.clj:495)
at riemann.streams$rate$rate_SINGLEQUOTE___4322.invoke(streams.clj:847)
at riemann.streams$with$stream__4879$fn__4906.invoke(streams.clj:1316)
at riemann.streams$with$stream__4879.invoke(streams.clj:1316)
at riemann.core$stream_BANG_$fn__5678.invoke(core.clj:19)
at riemann.core$stream_BANG_.invoke(core.clj:18)
at riemann.transport$handle.invoke(transport.clj:159)
at riemann.transport.tcp$tcp_handler.invoke(tcp.clj:93)
at riemann.transport.tcp$gen_tcp_handler$fn__5904.invoke(tcp.clj:65)
at riemann.transport.tcp.proxy$io.netty.channel.ChannelInboundHandlerAdapter$ff19274a.channelRead(Unknown Source)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32)
at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324)
at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
I've commented the first section out just to try to troubleshoot the exception.
I guess to start with I'm not sure why it's having troubles trying to use a string as a number when all I'm trying to do is get a rate.
Any pointers on where to start here? I tried adding (exception-stream #(info %)) just after the (rate 1 but it doesn't show me anything, although I'm probably using that incorrectly.