Misc output change

dev
Ice3man543 2021-07-06 21:11:30 +05:30
parent 900c2da89c
commit cdb7faaa0b
2 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ func (r *Request) makeResultEventItem(wrapped *output.InternalWrappedEvent) *out
Host: types.ToString(wrapped.InternalEvent["host"]), Host: types.ToString(wrapped.InternalEvent["host"]),
Matched: types.ToString(wrapped.InternalEvent["matched"]), Matched: types.ToString(wrapped.InternalEvent["matched"]),
ExtractedResults: wrapped.OperatorsResult.OutputExtracts, ExtractedResults: wrapped.OperatorsResult.OutputExtracts,
Metadata: wrapped.OperatorsResult.PayloadValues,
Timestamp: time.Now(), Timestamp: time.Now(),
IP: types.ToString(wrapped.InternalEvent["ip"]), IP: types.ToString(wrapped.InternalEvent["ip"]),
} }

View File

@ -209,6 +209,7 @@ func (r *Request) executeRequestWithPayloads(actualAddress, address, input strin
if r.CompiledOperators != nil { if r.CompiledOperators != nil {
result, ok := r.CompiledOperators.Execute(outputEvent, r.Match, r.Extract) result, ok := r.CompiledOperators.Execute(outputEvent, r.Match, r.Extract)
if ok && result != nil { if ok && result != nil {
event.OperatorsResult.PayloadValues = payloads
event.OperatorsResult = result event.OperatorsResult = result
event.Results = r.MakeResultEvent(event) event.Results = r.MakeResultEvent(event)
} }