log-elasticsearch-0.12.2.0: Structured logging solution (Elasticsearch back end)
Safe HaskellNone
LanguageHaskell2010

Log.Backend.ElasticSearch.Lens

Description

Lensified version of Log.Backend.ElasticSearch.

Synopsis

Documentation

data ElasticSearchConfig Source #

Configuration for the Elasticsearch Logger. See https://www.elastic.co/guide/en/elasticsearch/reference/current/glossary.html for the explanation of terms.

Instances

Instances details
Eq ElasticSearchConfig Source # 
Instance details

Defined in Log.Backend.ElasticSearch.Internal

Show ElasticSearchConfig Source # 
Instance details

Defined in Log.Backend.ElasticSearch.Internal

Generic ElasticSearchConfig Source # 
Instance details

Defined in Log.Backend.ElasticSearch.Internal

Associated Types

type Rep ElasticSearchConfig :: Type -> Type #

type Rep ElasticSearchConfig Source # 
Instance details

Defined in Log.Backend.ElasticSearch.Internal

type Rep ElasticSearchConfig = D1 ('MetaData "ElasticSearchConfig" "Log.Backend.ElasticSearch.Internal" "log-elasticsearch-0.12.2.0-3t0MIc5cvkN26Kdr0KtNYJ" 'False) (C1 ('MetaCons "ElasticSearchConfig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "esServer") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "esIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "esShardCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "esReplicaCount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "esMapping") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "esLogin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Text, Text))) :*: S1 ('MetaSel ('Just "esLoginInsecure") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))))

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 (Text, Text)) Source #

Elasticsearch basic authentication username and password.

esLoginInsecure :: Lens' ElasticSearchConfig Bool Source #

Allow basic authentication over non-TLS connections.

withElasticSearchLogger :: ElasticSearchConfig -> (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.