Setup Pipeline Logs to external BD ( Loki/ElasticSearch)?

Hi @everybody.

I would like redirect all pipeline generated logs to an external log db like loki or ElasticSearch , and also continue reviewing it from the drone-server UI.

There is any way to do that?