Click or drag to resize

SenderToElasticSearchSend Method

Executes the sender reading data from valuesToBeSent.

Namespace:  SenderElasticSearch
Assembly:  SenderElasticSearch (in SenderElasticSearch.dll) Version: 1.0.0
Syntax
Examples
To copy data from SQL Server to Elasticsearch following *.json configuration file can be used:
SQLServerToElasticsearch.json
{
              "$type": "StanskinsImplementation.SimpleJob, StanskinsImplementation",
              "Receivers": {
                "$type": "StankinsInterfaces.OrderedList`1[[StankinsInterfaces.IReceive, StankinsInterfaces]], StankinsInterfaces",
                "0": {
                  "$type": "ReiceverDBStmtSqlServer.ReceiverStmtSqlServer, ReiceverDBStmtSqlServer",
                  "ConnectionString": "Server=(local)\\SQL2016;Database=IronSQLDBA;Trusted_Connection=True;",
                  "CommandType": 4,
                  "CommandText": "dbo.active_slow_query_select",
                  "FileNameSerializeLastRow": "IronSQLDBA_active_slow_query_select_last_row.json",
                  "ParametersMappings": "@original_id=original_id"
                }
              },
              "FiltersAndTransformers": {
                "$type": "StankinsInterfaces.OrderedList`1[[StankinsInterfaces.IFilterTransformer, StankinsInterfaces]], StankinsInterfaces"
              },
              "Senders": {
                "$type": "StankinsInterfaces.OrderedList`1[[StankinsInterfaces.ISend, StankinsInterfaces]], StankinsInterfaces",
                "0": {
                  "$type": "SenderElasticSearch.SenderToElasticSearch, SenderElasticSearch",
                  "Uri": "http://localhost:9200",
                  "IndexName": "ironsqldba-index-active-slow-query",
                  "TypeName": "active-slow-query",
                  "Id": "id"
                }    
              }
            }
See Also