refactor: localize protobuf definitions

This commit is contained in:
2026-08-09 20:14:57 +08:00
parent 9f6f318bbb
commit 5ea45a76fe
429 changed files with 54058 additions and 61623 deletions

View File

@@ -1,32 +0,0 @@
filebeat.inputs:
- type: log
enabled: true
# 开启json解析
json.keys_under_root: true
json.add_error_key: true
# 日志文件路径
paths:
- ./logs/fts/error.log
- ./logs/fts/slow.log
setup.template.settings:
index.number_of_shards: 1
# 定义kafka topic field
fields:
log_topic: scf.license.dev
# 输出到kafka
output.kafka:
hosts: ["127.0.0.1:9092"]
topic: '%{[fields.log_topic]}'
partition.round_robin:
reachable_only: false
required_acks: 1
keep_alive: 10s
# ================================= Processors =================================
processors:
- decode_json_fields:
fields: ['@timestamp','level','content','trace','span','duration']
target: ""

View File

@@ -1,12 +0,0 @@
go env -w CGO_ENABLED=0
go env -w GOOS="linux"
go env -w GOARCH=arm64
go build -o bsm-apps-fts ./cmd/main/main.go
go env -w GOARCH=amd64
go env -w GOOS="windows"
go env -w GOOS="linux"
go build -o bsm-apps-fts ./cmd/main/main.go
go env -w GOOS="windows"
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o fts ./cmd/main/main.go