riemann.elasticsearch

Forwards events to Elasticsearch.

elasticsearch

(elasticsearch opts & maybe-formatter)

Returns a function which accepts an event and sends it to Elasticsearch. Custom event formatter can be provided as optional second argument.

Options:

:es-endpoint Elasticsearch, default is “http://127.0.0.1:9200". :es-index Index name, default is ”riemann“. :index-suffix Index-suffix, default is ”-yyyy.MM.dd“. :type Type to send to index, default is ”event". :username Username to authenticate with. :password Password to authenticate with.

Example:

(elasticsearch ; ES options {:es-endpoint “https:example-elastic.com” :index-suffix “-yyyy.MM”} ; (optional) custom event formatter (fn [event] (let [newtags (concat (:tags event) [“extra-tag”])] (merge event {:tags newtags}))))