praxisdigital / fileconverter_flasksoffice

This Moodle plugin uses a separat Linux server with Flask and LibreOffice for converting documents.
0 stars 0 forks source link

Removal of logging to elasticsearch #14

Open frederikmillingpytlick opened 6 days ago

frederikmillingpytlick commented 6 days ago

Elasticsearch is getting shutdown 22/10/2024, we need to remove it before that. This plugin is currently logging to it, but it may just be because of site not having the newest version.

{
  "_index": "moodle-mxlog",
  "_id": "PfIzVpIBj-kSqjTwaCL7",
  "_version": 1,
  "_score": 0,
  "_source": {
    "message": "Uploading file to converter",
    "context": {
      "filename": "onlinetext-onlinetext.html",
      "contenthash": "05efb8d0ded3951ad4cb500fba0c44db3d8ae381",
      "pathnamehash": "00eb40d82feefc786487dff2a6a2aeaa4dc9668f",
      "component": "fileconverter_flasksoffice",
      "conversion_id": 15867,
      "conversion_status": "in_progress"
    },
    "level": 200,
    "level_name": "INFO",
    "channel": "mxlog",
    "datetime": "2024-10-04T08:24:22.723062+02:00",
    "extra": [],
    "platform": "moodle",
    "uid": "09250980-d74c-4b2e-ac13-69b64379f0d2",
    "site": "https://mit.speakspeak.dk",
    "site_url": "mit.speakspeak.dk",
    "@timestamp": "2024-10-04T08:24:22+02:00",
    "component": "fileconverter_flasksoffice"
  },
  "fields": {
    "channel": [
      "mxlog"
    ],
    "channel.keyword": [
      "mxlog"
    ],
    "platform": [
      "moodle"
    ],
    "uid": [
      "09250980-d74c-4b2e-ac13-69b64379f0d2"
    ],
    "datetime": [
      "2024-10-04T06:24:22.723Z"
    ],
    "site_url.keyword": [
      "mit.speakspeak.dk"
    ],
    "context.conversion_status": [
      "in_progress"
    ],
    "context.component.keyword": [
      "fileconverter_flasksoffice"
    ],
    "level_name.keyword": [
      "INFO"
    ],
    "context.pathnamehash": [
      "00eb40d82feefc786487dff2a6a2aeaa4dc9668f"
    ],
    "context.conversion_status.keyword": [
      "in_progress"
    ],
    "context.filename.keyword": [
      "onlinetext-onlinetext.html"
    ],
    "level": [
      "200"
    ],
    "context.contenthash": [
      "05efb8d0ded3951ad4cb500fba0c44db3d8ae381"
    ],
    "context.conversion_id": [
      15867
    ],
    "context.contenthash.keyword": [
      "05efb8d0ded3951ad4cb500fba0c44db3d8ae381"
    ],
    "message": [
      "Uploading file to converter"
    ],
    "context.component": [
      "fileconverter_flasksoffice"
    ],
    "context.filename": [
      "onlinetext-onlinetext.html"
    ],
    "component": [
      "fileconverter_flasksoffice"
    ],
    "site": [
      "https://mit.speakspeak.dk"
    ],
    "@timestamp": [
      "2024-10-04T06:24:22.000Z"
    ],
    "level_name": [
      "INFO"
    ],
    "site_url": [
      "mit.speakspeak.dk"
    ],
    "context.pathnamehash.keyword": [
      "00eb40d82feefc786487dff2a6a2aeaa4dc9668f"
    ]
  }
}
AraPraxis commented 2 days ago

@Mikkeljeppesen1 Should be updated before the 22nd! (Full deprecation of ElasticSearch)

New version: 2024100800

(Our version of flasksoffice (extensive logging) https://morris.praxis.dk/plugin/1052)