Elasticsearch Notification Settings

This page documents settings for configuring an Elasticsearch service as a target for Bucket Notifications. See Publish Events to Elasticsearch for a tutorial on using these settings.

You can establish or modify settings by defining:

  • an environment variable on the host system prior to starting or restarting the AIStor Server. Refer to your operating system’s documentation for how to define an environment variable.
  • a configuration setting using mc admin config set.

If you define both an environment variable and the similar configuration setting, AIStor uses the environment variable value.

Some settings have only an environment variable or a configuration setting, but not both.

Each configuration setting controls fundamental AIStor behavior and functionality. Test configuration changes in a lower environment, such as DEV or QA, before applying to production.

Example

Settings

Enable

Specify on to enable publishing bucket notifications to an Elasticsearch service endpoint. Defaults to off.

Url

Specify the Elasticsearch service endpoint to which AIStor publishes bucket events. For example, https://elasticsearch.example.com:9200. AIStor supports passing authentication information using as URL parameters using the format PROTOCOL://USERNAME:PASSWORD@HOSTNAME:PORT.

AIStor checks the health of the specified URL (if it is resolvable and reachable) prior to adding the target. AIStor adds offline targets without blocking.

Index

Specify the name of the Elasticsearch index in which to store or update AIStor bucket events. Elasticsearch automatically creates the index if it does not exist.

Format

Specify the format of event data written to the Elasticsearch index. AIStor supports the following values:

  • namespace: For each bucket event, AIStor creates a JSON document with the bucket and object name from the event as the document ID and the actual event as part of the document body. Additional updates to that object modify the existing index entry for that object. Similarly, deleting the object also deletes the corresponding index entry.
  • access: For each bucket event, AIStor creates a JSON document with the event details and appends it to the index with an Elasticsearch-generated random ID. Additional updates to an object result in new index entries, and existing entries remain unmodified.

Username

The username for connecting to an Elasticsearch service endpoint which enforces authentication.

Password

The password for connecting to an Elasticsearch service endpoint which enforces authentication.

AIStor redacts this value when returned as part of mc admin config get.

Queue Dir

Specify the directory path to enable MinIO’s persistent event store for undelivered messages, such as /opt/minio/events.

AIStor stores undelivered events in the specified store while the Elasticsearch service is offline and replays the stored events when connectivity resumes.

Queue Limit

Specify the maximum limit for undelivered messages. Defaults to 100000.

Comment

Specify a comment to associate with the Elasticsearch configuration.

All rights reserved 2024-Present, MinIO, Inc.