Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Elasticsearch Publisher's "type" must always be specified as "application".

Elasticsearch Publisher's "_type" must always be specified as "applicationpublisher".

Elasticsearch Publisher's "description" must be a descriptive string without spaces.

Elasticsearch Publisher's "config" must always be specified as "com.accenture.aspire:aspire-elasticsearch-publisher-source".

Elasticsearch Publisher's "appType" must always be specified as "elasticsearch-publisher".

Elasticsearch Publisher's "appName" must always be specified as "Elasticsearch Publisher".

The Properties specific to the Elasticsearch Publisher are described below.

Easy Heading Free
navigationTitleOn this Page
navigationExpandOptionexpand-all-by-default

ServiceNow Connection Properties


debug
FieldRequiredDefaultMultipleNotesExample
propertiesYes-NoConfiguration object
elasticNoUrlYesfalseNo
true / false
elasticUrlNo-NoServiceNow server to be crawled (to be specified without protocol).Required if elasticNoUrl is false."http://myServer:9200"myserver.service-now.com"
elasticHostYesNo-NoNumber of elements per page to be retrieved with the connection.Required if elasticNoUrl is true.
"myServer"2000
elasticPortNofalse-NoIf set to true, a crawl will stop when a scan error is found.Required if elasticNoUrl is true."9200"true
elasticIndexYes-No
"test-index"
authTypeNo-falseNoIf set to true, the entire sys_user is cached as opposed to every user being cached when necessary.true
transformTypeNotrueNoIf set to true, the Aggregate API will be used to get counts of rows from the Knowledge and Category tables.false
Allowed values are: "none", "basic" and "aws"."none"
userNo-NoRequired if authType is "basic"."john.doe"
passwordNo-NoRequired if authType is "basic"."myP@ssword11"
awsRegionNo-NoRequired if authType is "aws"."us-east-2"
useCredentialsProviderChainNofalseNo
true / false
awsAccessKeyNo-NoRequired if authType is "aws" and useCredentialsProviderChain is false."AKIAQYO33L5HIS3N55NN"
awsSecretKeyNo-NoRequired if authType is "aws" and useCredentialsProviderChain is false."PPA3Qt+FqUA4Kk07DRS7w4T6Bya1IWebbcqFmqmI"
transformTypeYes-No
"JSON"
transformFileYes-No
"C:\transformfiles\groovy\mytransform.groovy"
processClearNofalseNo

deleteOnClearNofalseNo

idleConnectionTimeout
-No

maxConnections
-No

maxConnectionsPerRoute
-No

connectionTimeout
-No

socketTimeout
-No

useThrottling
-No

maxRetries
-No

retryWaitTime
-No

batchSize
-No

simultaneousBatches
-No

batchTimeout
-No

debug
-NotransformFileprocessClearidleConnectionTimeoutmaxConnectionsmaxConnectionsPerRouteconnectionTimeoutsocketTimeoutuseThrottlingmaxRetriesretryWaitTimebatchSizesimultaneousBatchesbatchTimeout

Create example


Code Block
themeRDark
titlePOST /aspire/_api/connections
{
	"type": "application",
	"_type": "publisher",
	"description": "ElasticsearchPublisherTest",
	"config": "com.accenture.aspire:aspire-elasticsearch-publisher-source",
	"appType": "elasticsearch-publisher",
	"appName": "Elasticsearch Publisher",
	"properties": {
		"elasticNoUrl": true,
		"elasticHost": "myEShost",
		"elasticPort": 9200,
		"elasticIndex": "test-index",
		"authType": "none",
		"transformType": "JSON",
		"transformFile": "${component.home}/config/groovy/transform.groovy",
		"processClear": false,
		"idleConnectionTimeout": 3600000,
		"maxConnections": 100,
		"maxConnectionsPerRoute": 10,
		"connectionTimeout": 15000,
		"socketTimeout": 15000,
		"useThrottling": false,
		"maxRetries": 3,
		"retryWaitTime": 5000,
		"batchSize": 50,
		"simultaneousBatches": 5,
		"batchTimeout": 5000,
		"debug": false
	}
}