Skip to content

Opensearch

services.opensearch.enable

Whether to enable OpenSearch.

Type: boolean

Default: false

Example: true

services.opensearch.package

The OpenSearch package to use.

Type: package

Default: pkgs.opensearch

services.opensearch.extraCmdLineOptions

Extra command line options for the OpenSearch launcher.

Type: list of string

Default: [ ]

services.opensearch.extraJavaOptions

Extra command line options for Java.

Type: list of string

Default: [ ]

Example:

[
  "-Djava.net.preferIPv4Stack=true"
]

services.opensearch.logging

OpenSearch logging configuration.

Type: string

Default:

''
  logger.action.name = org.opensearch.action
  logger.action.level = info
  appender.console.type = Console
  appender.console.name = console
  appender.console.layout.type = PatternLayout
  appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
  rootLogger.level = info
  rootLogger.appenderRef.console.ref = console
''

services.opensearch.settings

OpenSearch configuration.

Type: YAML value

Default: { }

services.opensearch.settings."cluster.name"

The name of the cluster.

Type: string

Default: "opensearch"

services.opensearch.settings."discovery.type"

The type of discovery to use.

Type: string

Default: "single-node"

services.opensearch.settings."http.port"

The port to listen on for HTTP traffic.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default: 9200

services.opensearch.settings."network.host"

Which port this service should listen on.

Type: string

Default: "127.0.0.1"

services.opensearch.settings."transport.port"

The port to listen on for transport traffic.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default: 9300