tgk / riemann-http-proxy

Riemann HTTP Proxy
Eclipse Public License 1.0
1 stars 1 forks source link

Multiple events in one call #1

Open furnacification opened 8 years ago

furnacification commented 8 years ago

Great product! If I submit multiple events in one api call it goes through but only translates/submits the first event to riemann and the rest is discarded.

Any chance you could split the string by a newline character and loop through each line and submit?

tgk commented 8 years ago

That's a good idea. Maybe it would make more sense to submit a sequence (e.g. a list) of edn format event to avoid having significant newlines? If we rely on newlines to separate the events it would be impossible to have newlines in the :description part of an event.

furnacification commented 8 years ago

My layman understanding of clojure directed me to the split functions; Sequences make more sense.

tgk commented 8 years ago

Cool - I might have a look at implementing it soon.