Open aphilas opened 2 years ago
We're not considering accepting arrays for now, and your workaround seems good.
Doing it with the least amount of change in Dsiem would be by modifying this line to parse array: https://github.com/defenxor/dsiem/blob/edcd608668aad890056c20dd5ade5061da672cc2/internal/pkg/dsiem/server/handler.go#L188, and just create a loop over it to the end of the file.
Problem to be solved
/events only accepts a single event. Code in event.go and handler.go
I am setting up an EFK stack, and then using using dsiem for correlation.
Fluentd
out_http
plugin, IIUC, only emits eitherndjson
orjson
with an array of events. Docs.Alternatives I have tried
POST
ingapplication\x-ndjson
, which fails.POST
ingapplication\json
with an array of normalized events, which fails. Different fluentd configs forout_http
Suggested solution
Parse an event or an array of events.
I don't know if that's trivial (or even necessary), or it adds extra complexity.
ETA: