hslogstash-0.2.1: A library to work with, or as, a logstash server

Safe HaskellNone

Data.Conduit.ElasticSearch

Description

This module exports Conduit interfaces to ElasticSearch. It is totally experimental.

Synopsis

Documentation

esSinkSource

Arguments

:: MonadResource m 
=> Maybe (Request m)

Defaults parameters for the http request to ElasticSearch. Use Nothing for defaults.

-> ByteString

Hostname of the ElasticSearch server

-> Int

Port of the HTTP interface (usually 9200)

-> Conduit LogstashMessage m (Either (LogstashMessage, Value) Value) 

Takes JSONifiable values, and returns the result of the ES request along with the value in case of errors, or ES's values in case of success