Configure a YML file

更新时间:
复制 MD 格式

Modify parameters in the YML file of an Alibaba Cloud Logstash cluster to control how it processes tasks.

Usage notes

When you modify the YML file configuration, note the following:

  • The slow log feature is enabled by default to simplify troubleshooting. Do not remove this configuration.

  • To ensure service stability, the following parameters cannot be modified.

    node.name
    path.data
    path.config
    http.host
    http.port
    log.level
    path.logs
    path.plugins
    log.format
    path.settings
    pipeline.workers
    xpack.management.enabled
    xpack.management.pipeline.id
    xpack.management.elasticsearch.username
    xpack.management.elasticsearch.password
    xpack.management.elasticsearch.hosts
    xpack.monitoring.enabled
    xpack.monitoring.elasticsearch.username
    xpack.monitoring.elasticsearch.password
    xpack.monitoring.elasticsearch.hosts

Procedure

  1. Log on to the Alibaba Cloud Elasticsearch console.

  2. In the left-side navigation pane, click Logstash Clusters.

  3. Navigate to the target cluster.

    1. In the top navigation bar, select the region where the cluster resides.

    2. On the Logstash Clusters page, find the cluster and click its ID.

  4. In the left-side navigation pane, click Cluster Configuration.

  5. On the Cluster Configuration page, click Modify Configuration next to YML File Configuration.

  6. In the YML File Configuration panel, modify the YML file configuration as needed.

    For details about configuration parameters, see the Logstash 6.7.0 Reference.

    Warning

    Modifying the YML file restarts the Logstash cluster for the changes to take effect. To avoid business impact, confirm that it is safe to proceed.

  7. Select This operation will restart the cluster. Continue? and click OK.

    After you click OK, the cluster restarts. You can monitor progress in the Tasks list. For details, see View the progress of a cluster task. The new YML file configuration takes effect after the restart is complete.

API reference

UpdateLogstashSettings