Questions tagged [riemann]

Riemann is a network event stream processing system written in Clojure.

Riemann is a network event stream processing system written in Clojure.

Webpage: https://riemann.io/

78 questions
1
vote
0 answers

Rollup function is not working in riemman when clj-time.core is added

I am using riemann to trigger an email alert which should get triggered only during 3AM to 8PM daily. When I have added clj-time.core function rollup function is not working. Don't know where I am going wrong. Any help is appreciated. (tcp-server…
Mangoski
  • 2,058
  • 5
  • 25
  • 43
1
vote
1 answer

Is it possible to configure email alert at specific days and specific time in Riemann?

I am using Riemann in my project to trigger an email alert. Is it possible to trigger email alert only for specific days lets say(mon-fri @ 3am to 8pm) only. If so can anyone help me with the reference. My updated code: (tcp-server {:host…
Mangoski
  • 2,058
  • 5
  • 25
  • 43
1
vote
1 answer

Convert a string in a float with Riemann in clojure

I am processing streams in Riemann and all the fields are strings. However I'd like to perform some numeric comparisons on some fields. Therefore I tried to convert them in float. Let's say my stream is like that : #riemann.codec.Event{:host…
Robin Dupont
  • 339
  • 1
  • 2
  • 12
1
vote
0 answers

secure a riemann dashboard websocket

I want to secure my riemann server/client/dashboard to use it on a production server so that only authorized can access the data. So: I redirect port 80 to 443 used let's encrypt certificates added nginx authentication on the dashboard But then I…
nha
  • 17,623
  • 13
  • 87
  • 133
1
vote
2 answers

clojure.lang.ArityException: Wrong number of args (3) passed to: client$batch

I am new to closure and trying to setup Riemann to monitor server resources and application events. I have a Riemann server setup and am trying to add a Riemann client, which will forward events to the Riemann server. This is my Riemann client…
1
vote
1 answer

Riemann-dash not showing anything

I am new to riemann. I am facing an issue which i guess would be trivial but not able to find the solution. I am not getting any data on the riemann dashboard. I have followed the exact steps said in riemann.io/howto.html My riemann.config…
vivek jha
  • 344
  • 1
  • 11
1
vote
1 answer

How to add URL link in email body message in riemann

I am trying to add a html URL tag in my email body. I have used like below, :body (fn [events] "Hello Team.\n Welcome \n Link to my website \n * This is an automated e-mail and any responses to this e-mail will…
Mangoski
  • 2,058
  • 5
  • 25
  • 43
1
vote
1 answer

Custom body message in riemann email

I am trying to create a custom message in the body section of email using riemann. I couldn't append the field dynamically. Riemann config: (let [email (mailer {:host "XXXXX" :port XX :user "XXX" :pass "XXX" :auth "true" …
Mangoski
  • 2,058
  • 5
  • 25
  • 43
1
vote
1 answer

Clojure:riemann.streams$smap$stream IllegalArgumentException: Key must be integer

I have a clojure code(riemann) to send an email if certain condition was met. I am facing some issue while passing the event to riemann server. Riemann code (let [email (mailer {"......"})] (streams (where (service "system_log") (by…
Mangoski
  • 2,058
  • 5
  • 25
  • 43
1
vote
1 answer

description event getting nil in riemann

I am trying to send email alert from logstash using Riemann. My email should get triggered on meeting certain criteria. I wrote Riemann config to send email alert for that I am sending certain events from logstash, I have hardcoded :description…
Mangoski
  • 2,058
  • 5
  • 25
  • 43
1
vote
2 answers

Clojure Dashboard query

I am trying to show a graph on riemann-dashboard using query "pingDelay > 0" . I already have indexed my data using following code (let [index (index)] (defn write-dht-metric [e] (let [dhtstate (re-find #"dht_status: health\.(\S+), msg count…
Tahir Rauf
  • 484
  • 6
  • 16
1
vote
1 answer

Adding A Custom Date Field To Riemann Events

I am using the default config setup for Riemann : ; -*- mode: clojure; -*- ; vim: filetype=clojure (logging/init {:file "riemann.log"}) ; Listen on the local interface over TCP (5555), UDP (5555), and websockets ; (5556) (let [host "127.0.0.1"] …
Alex Laverty
  • 485
  • 1
  • 7
  • 16
1
vote
2 answers

How to clear up Riemann index when a specific event has been received?

I'm writing unit tests for an application which sends events to Riemann. Riemann starts up very slowly, so I decided to launch it once and reuse the instance for all tests. Therefore I need to clean the index from events produced by previous tests…
Vladimir Korenev
  • 1,124
  • 1
  • 9
  • 27
1
vote
1 answer

Need help in optimising clojure statement

I'm very new to clojure and need to set up a riemann config so that it would be easy to edit/add new conditions. What we have now: (defn tell-ops ([to] (by [:service] (throttle 3 360 (rollup 2 360 …
John dow
  • 120
  • 8
1
vote
2 answers

Count riemann events in given time window

In riemann config for specific service I'm trying to assign to all its events metric=1, sum them within 5sec and send the result to influxdb. I tried the following: (streams (where (service "offers") (fixed-time-window 5 (smap folds/sum…
Michal
  • 677
  • 6
  • 16