pfs2elastic MySQL Performance Schema to Elasticsearch Script to use in cronjob to send events history from PFS to elasticsearch: