Convert filebeat module to promtail pipeline

Job ID: 33832332

Budget: $30 – $250 USD

I need promtail pipeline configuration to ingest mysql slow log to loki.
There is a module for filebeat that does the same for elastic.

The filebeat module:
Features: https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-mysql.html
Source code: https://github.com/elastic/beats/tree/master/filebeat/module/mysql
Promtail pipeline docs:
https://grafana.com/docs/loki/latest/clients/promtail/pipelines/

I know there is a logstash plugin for grafana, I don't want to use it.
I want promtail to parse the slow log exactly like filebeat mysql module and send it straight to Loki server.

P.S. If you don't have any experience with all of this tools (elastic, filebeat, promtail, loki) please do not bother
Related categories: MySQL Elasticsearch DevOps