aquasecurity/trivy

Configurable log format using trivy server

開放

#3,300 建立於 2022年12月14日

 (1 則留言) (0 個反應) (0 位負責人)Go (371 個分叉)batch import
help wantedkind/featurepriority/backlog

倉庫指標

星標
 (35,000 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

We use trivy server to scan images from both CI pipelines and a Kubernetes operator. Our log infrastructure (Splunk) is much more fond of logs in machine-readable format (JSON), so it would be nice if it were possible to configure the log format when bootstrapping trivy server.

It seems like trivy uses https://github.com/uber-go/zap as the logging backend, supporting configuration, and JSON logging. A potential challenge could be that it seems hard to integrate Zap configuration with Viper/Cobra, ref. https://github.com/uber-go/zap/issues/542.

Related https://github.com/aquasecurity/trivy/issues/1526.

貢獻者指南