How to extract trivy logs from a docker container?

Basically, I have a docker container which contains a few services that I check on the vulnerabilities ocasionally using the program trivy. The result comes in many ways, json included.

I thought of using Logstash to approach the output and sending over to Elasticsearch. But so far I haven't grasp yet on how I would make it work. Does Logstash has something like that?

Hi @SamuelSMendes
How about Filebeat with container input