Manage OpenSearch® log integration¶
Aiven provides a service integration that allows you to send your logs from several services, such as Aiven for Apache Kafka®, PostgreSQL®, Apache Cassandra®, OpenSearch®, Redis™*, InfluxDB®, and Grafana®, to Aiven for OpenSearch®. Making it possible for you to use OpenSearch to gain more insight and control over your logs.
In this article, you will understand how to enable, edit and disable the logs integration feature on Aiven for OpenSearch.
Enable log integration¶
Here are the steps needed to enable logs integration. This allows you to send your service’s logs to your Aiven for OpenSearch from another Aiven service.
On the Services page, scroll down and choose Service integrations.
On the Logs tab, click on Use Integration.
Select an existing OpenSearch instance or create a new one, then select Continue.
Configure your
index prefix
andindex retention limit
parameters, then select Enable
Note
If you want to effectively disable the index retention limit
, you can set it to the maximum value which is 10000 days.
Your Aiven service is now sending logs to your OpenSearch service which you can explore further.
Configure log integration¶
There are two parameters that you can adjust when integrating logs to your OpenSearch service:
index prefix
, specifies the prefix part of the index nameindex retention limit
, number of days to preserve the daily indexes
Warning
The service’s logs are sent from the selected service to your OpenSearch cluster. When the index retention limit
is reached, those indexes are deleted from the OpenSearch cluster.
You can change the configuration of the index prefix
and index retention limit
after the integration is enabled.
On the Overview page, scroll down to the Service integrations.
Click on Manage integrations.
On the Enabled service integrations list, find the service to configure.
Click on Edit button, and edit the parameters.
Once the parameters are chosen, click in Edit
Your log integration parameters should be updated after those steps.
Disable logs integration¶
In case, you are no longer interested in sending the logs from your service to OpenSearch, follow those steps to disable the integration:
On the Overview page, scroll down to the Service integrations.
Click on Manage integrations.
On the Enabled service integrations list, find the service to disable the integration.
Click on the Delete button.
Your log integration for OpenSearch should be successfully disabled after those steps.