zhu733756 非常感谢您的回复。
1、执行 kubectl -n kubesphere-logging-system get outputs.logging.kubesphere.io es -oyaml
apiVersion: logging.kubesphere.io/v1alpha2
kind: Output
metadata:
......
spec:
es:
host: 10.1.7.51
logstashFormat: true
logstashPrefix: ks-ks-log
port: 30402
timeKey: '@timestamp'
matchRegex: (?:kube|service)\.(.*)
端口和地址都正确,但是缺少账号密码的信息。
fluent-bit-w9bkg,的日志报错则是说,没有提供账号密码。
[2021/07/09 08:49:24] [error] [output:es:es.2] HTTP status=401 URI=/_bulk, response:
{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication credentials for REST request [/_bulk]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"missing authentication credentials for REST request [/_bulk]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}
2、执行 kubectl -n kubesphere-system get cm kubesphere-config -oyaml
这是我的有用输出
kubesphere.yaml: |
authentication:
authenticateRateLimiterMaxTries: 10
authenticateRateLimiterDuration: 10m0s
loginHistoryRetentionPeriod: 168h
maximumClockSkew: 10s
multipleLogin: True
kubectlImage: 192.168.101.30/devops/kubesphere/kubectl:v1.19.0
jwtSecret: "NdrdmdbcerddelxdsdndrR2ddEBzreV1"
network:
ippoolType: none
multicluster:
enable: true
agentImage: 192.168.101.30/devops/kubesphere/tower:v0.2.0
proxyPublishService: tower.kubesphere-system.svc
monitoring:
endpoint: http://prometheus-operated.kubesphere-monitoring-system.svc:9090
events:
host: http://10.1.7.51:30402
basicAuth: True
username: "elastic"
password: "elastic"
indexPrefix: ks-ks-events
auditing:
enable: true
host: http://10.1.7.51:30402
basicAuth: True
username: "elastic"
password: "elastic"
indexPrefix: ks-ks-auditing
alerting:
prometheusEndpoint: http://prometheus-operated.kubesphere-monitoring-system.svc:9090
thanosRulerEndpoint: http://thanos-ruler-operated.kubesphere-monitoring-system.svc:10902
thanosRuleResourceLabels: thanosruler=thanos-ruler,role=thanos-alerting-rules
没有显示 logging 的账号密码信息,我不知道在哪个位置填。