Configure a YML file

更新时间:
复制 MD 格式

You can 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:

  • To simplify troubleshooting for Alibaba Cloud Logstash, the slow log feature is enabled by default. 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 more information about the configuration parameters, see the Logstash 6.7.0 Reference.

    Warning

    Modifying the YML file requires restarting the Alibaba Cloud Logstash cluster for the changes to take effect. To prevent business impact, confirm that it is safe to proceed.

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

    After clicking OK, the Alibaba Cloud Logstash cluster restarts. You can monitor the restart progress in the Tasks list. For more information, see View the progress of a cluster task. The new YML file configuration takes effect once the restart is complete.

API reference

UpdateLogstashSettings