File tree Expand file tree Collapse file tree 2 files changed +3
-30
lines changed
Expand file tree Collapse file tree 2 files changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -159,18 +159,9 @@ func (c *ComplianceScanner) RunComplianceScan() error {
159159func (c * ComplianceScanner ) PublishScanStatus (scanMsg string , status string , extras map [string ]interface {}) error {
160160 scanMsg = strings .ReplaceAll (scanMsg , "\n " , " " )
161161 scanLog := map [string ]interface {}{
162- "scan_id" : c .config .ScanID ,
163- "time_stamp" : util .GetIntTimestamp (),
164- "@timestamp" : util .GetDatetimeNow (),
165- "scan_message" : scanMsg ,
166- "scan_status" : status ,
167- "type" : util .ComplianceScanLogs ,
168- "node_name" : c .config .NodeName ,
169- "node_id" : c .config .NodeID ,
170- "node_type" : "host" ,
171- "host_name" : c .config .NodeName ,
172- "compliance_check_types" : c .config .ComplianceCheckTypes ,
173- "masked" : false ,
162+ "scan_id" : c .config .ScanID ,
163+ "scan_message" : scanMsg ,
164+ "scan_status" : status ,
174165 }
175166 for k , v := range extras {
176167 scanLog [k ] = v
Original file line number Diff line number Diff line change @@ -42,21 +42,3 @@ type ComplianceDoc struct {
4242 ComplianceCheckType string `json:"compliance_check_type"`
4343 ScanID string `json:"scan_id"`
4444}
45-
46- type ComplianceScanLog struct {
47- Type string `json:"type"`
48- TimeStamp int64 `json:"time_stamp"`
49- Timestamp string `json:"@timestamp"`
50- Masked bool `json:"masked"`
51- NodeID string `json:"node_id"`
52- NodeType string `json:"node_type"`
53- KubernetesClusterName string `json:"kubernetes_cluster_name"`
54- KubernetesClusterID string `json:"kubernetes_cluster_id"`
55- NodeName string `json:"node_name"`
56- ScanStatus string `json:"scan_status"`
57- ScanMessage string `json:"scan_message"`
58- ComplianceCheckType string `json:"compliance_check_type"`
59- TotalChecks int `json:"total_checks"`
60- Result map [string ]int `json:"result"`
61- ScanID string `json:"scan_id"`
62- }
You can’t perform that action at this time.
0 commit comments