-
Notifications
You must be signed in to change notification settings - Fork 89
Home
Alexander edited this page Feb 9, 2017
·
48 revisions
##Configuration Syntax
<targets>
<target xsi:type="ElasticSearch"
name="String"
uri="String"
index="Layout"
documentType="Layout"
throwExceptions="Boolean"
includeAllProperties="Boolean"
excludedProperties="String"
connectionStringName="String"
disableAutomaticProxyDetection="Boolean"
pipeline="String">
<field name="String" layout="Layout" layoutType="Type" /><!-- repeated, optional -->
</target>
</targets>
##Parameters
- name - Name of the target. String
- uri - Uri of a Elasticsearch node. Multiple can be passed comma seperated. String Default: http://localhost:9200
- index - Index to write to, if it doesn't exist it will be created. Layout Default: logstash-${date:format=yyyy.MM.dd}
- documentType - Type of document. Layout Default: logevent
- fields - A collection of fields. Each field contains a mapping between a NLog layout and a named field.
- includeAllProperties - Optionally include all properties from the log event. Boolean Default: False
- excludedProperties - Works with includeAllProperties to exclude specific properties. String
- connectionStringName - Optionally retrieve the Uri from a connection string. String
- throwExceptions (since version 1.0.19) - Allows target to rethrow exception when writing to elasticsearch. May be usefull when ElasticSearch target is used within FallbackGroup target. Boolean Default: false
- _ disableAutomaticProxyDetection_ (since version 2.0.5) - Optionally disable automatic proxy detection. Boolean
- pipeline - Name of the pipeline defined on ingestion node. String