title: custom config for riemann
body: <p>I'm new to riemann and clojure as well. what is want is, when new event comes in, it checks its state and service, if both things got match it print some thing in console. here is my config file. </p>
  
  <pre><code>(let [index (default :ttl 300 (update-index (index)))]
  
    ; Inbound events will be passed to these streams:
    (streams
  
      ; Index all events immediately.
      index
  
      ; Calculate an overall rate of events.
      (with {:metric 1 :host nil :state "ok" :service "events/sec"}
        (rate 5 index))
        ; my code starts from here 
        ; _______________________
      (where (and (= :service "foo")
          (= :state "ok"))
      (println "It works"))
  ;________ENDS HERE ______________
      ; Log expired events.
      (expired
        (fn [event] (info "expired" event)))
  ))
  </code></pre>
  
  <p>when I start riemann, I can see "It Works" in console. but never afterwards. 
  tell me where i'm doing wrong.?</p>