Hi,
i
tried to use the lookup-function to read needed events out of the
index. I got many many NullPointerExceptions, so I tried to figure out why by doing the following:
(where (host "doesreallynotexist")
(prn (riemann.index/lookup (:index @core) "cpu1avg1" "avg"))
)
and surprisingly I got this output:
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
INFO [2015-03-06 10:32:12,386] main - riemann.bin - PID 14732
INFO [2015-03-06 10:32:13,027] clojure-agent-send-off-pool-0 - riemann.transport.websockets - Websockets server 0.0.0.0 5556 online
INFO [2015-03-06 10:32:13,066] clojure-agent-send-off-pool-3 - riemann.transport.udp - UDP server 0.0.0.0 5555 16384 online
INFO [2015-03-06 10:32:13,066] clojure-agent-send-off-pool-2 - riemann.transport.tcp - TCP server 0.0.0.0 5555 online
INFO [2015-03-06 10:32:13,069] main - riemann.core - Hyperspace core online
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
#riemann.codec.Event{:host "cpu1avg1", :service "avg", :state "ok", :description "10.55% user+nice+sytem\n\n21.7 9811 beam.smp\n 0.5 29165 riemann-health\n 0.1 1080 b
eam.smp\n%CPU PID COMMAND\n 0.0 9 rcuos/1\n 0.0 994 acpid\n 0.0 990 sshd\n 0.0 9890 head\n 0.0 9889 sort\n 0.0 9888 ps", :metric 0, :tags nil, :time 356408
583423/250, :ttl 600}
#riemann.codec.Event{:host "cpu1avg1", :service "avg", :state "ok", :description "10.55% user+nice+sytem\n\n21.7 9811 beam.smp\n 0.5 29165 riemann-health\n 0.1 1080 b
eam.smp\n%CPU PID COMMAND\n 0.0 9 rcuos/1\n 0.0 994 acpid\n 0.0 990 sshd\n 0.0 9890 head\n 0.0 9889 sort\n 0.0 9888 ps", :metric 0, :tags nil, :time 356408
583423/250, :ttl 600}
#riemann.codec.Event{:host "cpu1avg1", :service "avg", :state "ok", :description "10.55% user+nice+sytem\n\n21.7 9811 beam.smp\n 0.5 29165 riemann-health\n 0.1 1080 b
eam.smp\n%CPU PID COMMAND\n 0.0 9 rcuos/1\n 0.0 994 acpid\n 0.0 990 sshd\n 0.0 9890 head\n 0.0 9889 sort\n 0.0 9888 ps", :metric 0, :tags nil, :time 356408
583423/250, :ttl 600}
and this event appears 39 times.
After that, nothing else happens. I assume that there is some kind of initialization and after that no events get into that stream. Is that right? And why is this prn executed in the first place?
I tried
(where (host "doesreallynotexist")
prn
)
but without any output after that INFO-output.
Thanks for your help.
Lorenz