From 23a92d7e9c6e24d5f89a1216096f795d9c1c5473 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 17 Sep 2025 04:14:22 +0000 Subject: [PATCH] =?UTF-8?q?[#1]=20=E4=BF=AE=E5=A4=8Dkibana=E5=88=9B?= =?UTF-8?q?=E5=BB=BAdataview=20=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bind/build/private/argus/bind/db.argus.com | 16 ---------------- .../build/private/argus/bind/named.conf.local | 4 ---- src/log/kibana/build/kibana-post-start.sh | 6 +++--- 3 files changed, 3 insertions(+), 23 deletions(-) delete mode 100644 src/bind/build/private/argus/bind/db.argus.com delete mode 100644 src/bind/build/private/argus/bind/named.conf.local diff --git a/src/bind/build/private/argus/bind/db.argus.com b/src/bind/build/private/argus/bind/db.argus.com deleted file mode 100644 index 9f85ae0..0000000 --- a/src/bind/build/private/argus/bind/db.argus.com +++ /dev/null @@ -1,16 +0,0 @@ -$TTL 604800 -@ IN SOA ns1.argus.com. admin.argus.com. ( - 2 ; Serial - 604800 ; Refresh - 86400 ; Retry - 2419200 ; Expire - 604800 ) ; Negative Cache TTL - -; 定义 DNS 服务器 -@ IN NS ns1.argus.com. - -; 定义 ns1 主机 -ns1 IN A 127.0.0.1 - -; 定义 web 指向 12.4.5.6 -web IN A 22.4.5.6 diff --git a/src/bind/build/private/argus/bind/named.conf.local b/src/bind/build/private/argus/bind/named.conf.local deleted file mode 100644 index 39ec99d..0000000 --- a/src/bind/build/private/argus/bind/named.conf.local +++ /dev/null @@ -1,4 +0,0 @@ -zone "argus.com" { - type master; - file "/etc/bind/db.argus.com"; -}; \ No newline at end of file diff --git a/src/log/kibana/build/kibana-post-start.sh b/src/log/kibana/build/kibana-post-start.sh index d6df289..d4b30e0 100644 --- a/src/log/kibana/build/kibana-post-start.sh +++ b/src/log/kibana/build/kibana-post-start.sh @@ -93,7 +93,7 @@ create_data_views_idempotent() { # 创建 train 数据视图 if [ "$train_indices" -gt 0 ]; then # 检查数据视图是否已存在 - local train_exists=$(curl -s "$KB_HOST/api/data_views/data_view" -H 'kbn-xsrf: true' 2>/dev/null | grep '"title":"train-\*"' | wc -l || echo "0") + local train_exists=$(curl -s "$KB_HOST/api/data_views" -H 'kbn-xsrf: true' 2>/dev/null | grep '"title":"train-\*"' | wc -l ) if [ "$train_exists" -eq 0 ]; then echo "[INFO] Creating data view for train-* indices" @@ -112,7 +112,7 @@ create_data_views_idempotent() { # 创建 infer 数据视图 if [ "$infer_indices" -gt 0 ]; then # 检查数据视图是否已存在 - local infer_exists=$(curl -s "$KB_HOST/api/data_views/data_view" -H 'kbn-xsrf: true' 2>/dev/null | grep '"title":"infer-\*"' | wc -l || echo "0") + local infer_exists=$(curl -s "$KB_HOST/api/data_views" -H 'kbn-xsrf: true' 2>/dev/null | grep '"title":"infer-\*"' | wc -l ) if [ "$infer_exists" -eq 0 ]; then echo "[INFO] Creating data view for infer-* indices" @@ -143,4 +143,4 @@ main() { } # 运行主逻辑 -main \ No newline at end of file +main