log-elasticsearch-0.10.0.1: Structured logging solution (Elasticsearch back end)

Safe HaskellNone
LanguageHaskell2010

Log.Backend.ElasticSearch.V5.Lens

Description

Lensified version of Log.Backend.ElasticSearch.

Synopsis

Documentation

esServer :: Lens' ElasticSearchConfig Text Source #

Elasticsearch server address.

esIndex :: Lens' ElasticSearchConfig Text Source #

Elasticsearch index name.

esShardCount :: Lens' ElasticSearchConfig Int Source #

Elasticsearch shard count for the named index.

Since: 0.10.0.0

esReplicaCount :: Lens' ElasticSearchConfig Int Source #

Elasticsearch replica count for the named index.

Since: 0.10.0.0

esMapping :: Lens' ElasticSearchConfig Text Source #

Elasticsearch mapping name.

esLogin :: Lens' ElasticSearchConfig (Maybe (EsUsername, EsPassword)) Source #

Elasticsearch basic authentication username and password.

esLoginInsecure :: Lens' ElasticSearchConfig Bool Source #

Allow basic authentication over non-TLS connections.

withElasticSearchLogger :: ElasticSearchConfig -> IO Word32 -> (Logger -> IO r) -> IO r Source #

Create an elasticSearchLogger for the duration of the given action, and shut it down afterwards, making sure that all buffered messages are actually written to the Elasticsearch store.