You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

68 lines
2.8 KiB

  1. {
  2. "$schema": "https://lnav.org/schemas/format-v1.schema.json",
  3. "synapse": {
  4. "title": "Synapse logs",
  5. "description": "Logs output by Synapse, a Matrix homesever, under its default logging config.",
  6. "regex": {
  7. "log": {
  8. "pattern": ".*(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3}) - (?<logger>.+) - (?<lineno>\\d+) - (?<level>\\w+) - (?<context>.+) - (?<body>.*)"
  9. }
  10. },
  11. "json": false,
  12. "timestamp-field": "timestamp",
  13. "timestamp-format": [
  14. "%Y-%m-%d %H:%M:%S,%L"
  15. ],
  16. "level-field": "level",
  17. "body-field": "body",
  18. "opid-field": "context",
  19. "level": {
  20. "critical": "CRITICAL",
  21. "error": "ERROR",
  22. "warning": "WARNING",
  23. "info": "INFO",
  24. "debug": "DEBUG"
  25. },
  26. "sample": [
  27. {
  28. "line": "my-matrix-server-generic-worker-4 | 2023-01-27 09:47:09,818 - synapse.replication.tcp.client - 381 - ERROR - PUT-32992 - Timed out waiting for stream receipts",
  29. "level": "error"
  30. },
  31. {
  32. "line": "my-matrix-server-federation-sender-1 | 2023-01-25 20:56:20,995 - synapse.http.matrixfederationclient - 709 - WARNING - federation_transaction_transmission_loop-3 - {PUT-O-3} [example.com] Request failed: PUT matrix-federation://example.com/_matrix/federation/v1/send/1674680155797: HttpResponseException('403: Forbidden')",
  33. "level": "warning"
  34. },
  35. {
  36. "line": "my-matrix-server | 2023-01-25 20:55:54,433 - synapse.storage.databases - 66 - INFO - main - [database config 'master']: Checking database server",
  37. "level": "info"
  38. },
  39. {
  40. "line": "my-matrix-server | 2023-01-26 15:08:40,447 - synapse.access.http.8008 - 460 - INFO - PUT-74929 - 0.0.0.0 - 8008 - {@alice:example.com} Processed request: 0.011sec/0.000sec (0.000sec, 0.000sec) (0.001sec/0.008sec/3) 2B 200 \"PUT /_matrix/client/r0/user/%40alice%3Atexample.com/account_data/im.vector.setting.breadcrumbs HTTP/1.0\" \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Element/1.11.20 Chrome/108.0.5359.179 Electron/22.0.3 Safari/537.36\" [0 dbevts]",
  41. "level": "info"
  42. }
  43. ],
  44. "highlights": {
  45. "user_id": {
  46. "pattern": "(@|%40)[^:% ]+(:|%3A)[\\[\\]0-9a-zA-Z.\\-:]+(:\\d{1,5})?(?<!:)",
  47. "underline": true
  48. },
  49. "room_id": {
  50. "pattern": "(!|%21)[^:% ]+(:|%3A)[\\[\\]0-9a-zA-Z.\\-:]+(:\\d{1,5})?(?<!:)",
  51. "underline": true
  52. },
  53. "room_alias": {
  54. "pattern": "(#|%23)[^:% ]+(:|%3A)[\\[\\]0-9a-zA-Z.\\-:]+(:\\d{1,5})?(?<!:)",
  55. "underline": true
  56. },
  57. "event_id_v1_v2": {
  58. "pattern": "(\\$|%25)[^:% ]+(:|%3A)[\\[\\]0-9a-zA-Z.\\-:]+(:\\d{1,5})?(?<!:)",
  59. "underline": true
  60. },
  61. "event_id_v3_plus": {
  62. "pattern": "(\\$|%25)([A-Za-z0-9+/_]|-){43}",
  63. "underline": true
  64. }
  65. }
  66. }
  67. }