
{"version": "2.0","statement": [{"effect": "allow","action": ["cls:DescribeTopics","cls:SearchLog"],"resource": ["*"]}]}
{es_password} with the ES access password you need to set.docker run -d \\--name elasticsearch-7.10.2 \\-p 9200:9200 \\-e "discovery.type=single-node" \\-e "ES_JAVA_OPTS=-Xms1g -Xmx1g" \\-e "xpack.security.enabled=true" \\-e "ELASTIC_PASSWORD={es_password}" \\docker.elastic.co/elasticsearch/elasticsearch:7.10.2
docker run -d \\--name cls-kibana-proxy \\-p 9201:9201 \\-e META_ES_ENDPOINT={es_address, http://ip:port} \\-e META_ES_USERNAME={es_user} \\-e META_ES_PASSWORD={es_password} \\-e CLS_REGION={region} \\-e CLS_SECRET_ID={SECRET_ID} \\-e CLS_SECRET_KEY={SECRET_KEY} \\-e CLS_SYNC_ENABLED=true \\-e CLS_SYNC_FILTERS=* \\gz-cls-images.tencentcloudcr.com/public/kibana-proxy:alpha-v0.6
docker run -d \\--name cls-kibana-proxy \\-p 9201:9201 \\-e META_ES_ENDPOINT={es_address, http://ip:port} \\-e META_ES_USERNAME={es_user} \\-e META_ES_PASSWORD={es_password} \\-e CLS_REGION={region} \\-e CLS_SECRET_ID={SECRET_ID} \\-e CLS_SECRET_KEY={SECRET_KEY} \\-e CLS_SYNC_ENABLED=true \\-e CLS_SYNC_FILTERS=* \\-e CLS_REGION_1={region_1} \\-e CLS_SECRET_ID_1={SECRET_ID} \\-e CLS_SECRET_KEY_1={SECRET_KEY} \\-e CLS_SYNC_FILTERS_1=* \\gz-cls-images.tencentcloudcr.com/public/kibana-proxy:alpha-v0.6
Variable | Required | Description |
META_ES_ENDPOINT | Yes | The access address for the ES (mini-cluster), in the format http://ip:port. |
META_ES_USERNAME | Yes | The username for accessing ES, with a default value of elastic. |
META_ES_PASSWORD | Yes | The password for accessing ES. |
CLS_REGION | Yes | |
CLS_SECRET_ID | Yes | Sub-account SecretId |
CLS_SECRET_KEY | Yes | Sub-account SecretKey |
CLS_SYNC_ENABLED | No | Whether to enable automatic synchronization. If automatic synchronization is enabled, log topics are automatically added to Kibana Index Pattern. The default value is false, which means automatic synchronization is not enabled. To enable it, configure the value as true. |
CLS_MAX_INDEX_PATTERNS | No | The maximum number of IndexPatterns in Kibana, with a default value of 1000. No new IndexPatterns are automatically added after this limit is exceeded. |
CLS_SYNC_FILTERS | No | When automatic synchronization is enabled, log topics that meet the filter criteria are synchronized to Kibana Index Pattern. Empty/Not configured: No log topics are synchronized. * : Synchronize all log topics. Filter criteria: Use a json string to specify the filter criteria. For supported filter criteria, see the Filters parameter in the Obtain Topic List API, for example, '{"logsetName": ["logset-dev"]}'. |
LOG_LEVEL | No | Log level: DEBUG, INFO, WARN, with INFO as the default. |
PROXY_AUTH | No | Whether to enable authentication for Proxy, with a default value of true. |
CLS_ES_ENDPOINT | No | The address of the CLS Elasticsearch-compatible API, which defaults to the public network address. Public network address: https://${region}.cls.tencentcs.com Private network address: https://${region}.cls.tencentyun.com Here, ${region} is the region abbreviation. Use the region where the log topic is located, for example, ap-guangzhou. |
CLS_API_ENDPOINT | No | The address of the CLS API, which defaults to the public network address. Public network address: https://cls.tencentcloudapi.com (Only non-financial zones are supported). Private network address: https://cls.internal.tencentcloudapi.com |
_{auto-increment id} to the corresponding variable name, for example, CLS_REGION_1, CLS_REGION_2.cat > ./kibana.yml << 'EOF'server.host: "0.0.0.0"# Elasticsearch Configurationelasticsearch.hosts: ["{proxy_address}"]elasticsearch.username: "{es_user}"elasticsearch.password: "{es_password}"elasticsearch.shardTimeout: 30sxpack.security.enabled: truexpack.data_enhanced.enabled: falseEOF
http://ip:port.docker run -d \\--name kibana-7.10.2 \\-p 5601:5601 \\-v ./kibana.yml:/usr/share/kibana/config/kibana.yml:ro \\docker.elastic.co/kibana/kibana:7.10.2
values.yaml with the following content. Replace {es_password} with the ES access password you need to set, replace {region} with the region to which the log topic belongs, and replace {SECRET_ID} and {SECRET_KEY} with the sub-account credentials.elasticsearch:enabled: truepassword: "{es_password}"kibana-proxy:image:tag: "v0.9.0"env:CLS_SYNC_ENABLED: "true"CLS_MAX_INDEX_PATTERNS: "1000"clsRegions:- CLS_REGION: "{region}"CLS_SECRET_ID: "{SECRET_ID}"CLS_SECRET_KEY: "{SECRET_KEY}"CLS_SYNC_FILTERS: '*'
elasticsearch:enabled: truepassword: "{es_password}"kibana-proxy:image:tag: "v0.9.0"env:CLS_SYNC_ENABLED: "true"CLS_MAX_INDEX_PATTERNS: "1000"clsRegions:- CLS_REGION: "{region}" # Configuration for multiple regions/accountsCLS_SECRET_ID: "{SECRET_ID}"CLS_SECRET_KEY: "{SECRET_KEY}"CLS_SYNC_FILTERS: '*'- CLS_REGION: "{region}" # Configuration for multiple regions/accountsCLS_SECRET_ID: "{SECRET_ID}"CLS_SECRET_KEY: "{SECRET_KEY}"CLS_SYNC_FILTERS: '*'
Variable | Required | Description |
CLS_REGION | Yes | |
CLS_SECRET_ID | Yes | Sub-account SecretId |
CLS_SECRET_KEY | Yes | Sub-account SecretKey |
CLS_SYNC_ENABLED | No | Whether to enable automatic synchronization. If automatic synchronization is enabled, log topics are automatically added to Kibana Index Pattern. The default value is false, which means automatic synchronization is not enabled. To enable it, configure the value as true. |
CLS_MAX_INDEX_PATTERNS | No | The maximum number of IndexPatterns in Kibana, with a default value of 1000. No new IndexPatterns are automatically added after this limit is exceeded. |
CLS_SYNC_FILTERS | No | When automatic synchronization is enabled, log topics that meet the filter criteria are synchronized to Kibana Index Pattern. Empty/Not configured: No log topics are synchronized. * : Synchronize all log topics. Filter criteria: Use a json string to specify the filter criteria. For supported filter criteria, see the Filters parameter in the Obtain Topic List API, for example, '{"logsetName": ["logset-dev"]}'. |
CLS_ES_ENDPOINT | No | The address of the CLS Elasticsearch-compatible API, which defaults to the public network address. Public network address: https://${region}.cls.tencentcs.com Private network address: https://${region}.cls.tencentyun.com Here, ${region} is the region abbreviation. Use the region where the log topic is located, for example, ap-guangzhou. |
CLS_API_ENDPOINT | No | The address of the CLS API, which defaults to the public network address. Public network address: https://cls.tencentcloudapi.com (Only non-financial zones are supported). Private network address: https://cls.internal.tencentcloudapi.com |
helm install cls-kibana-proxy-stack https://cls-kibana-proxy-1254077820.cos.ap-guangzhou.myqcloud.com/cls-kibana-proxy-stack-0.0.1.tgz -f values.yaml -n cls --create-namespace
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan