mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
refactor: improve formatting and consistency in Supabase template logging configuration
- Added a blank line for better separation in the configuration. - Corrected regex pattern formatting for clarity. - Ensured consistent indentation for logging sink configurations.
This commit is contained in:
@@ -658,6 +658,7 @@ config:
|
||||
})
|
||||
- filePath: /volumes/logs/vector.yml
|
||||
content: |
|
||||
|
||||
api:
|
||||
enabled: true
|
||||
address: 0.0.0.0:9001
|
||||
@@ -772,7 +773,7 @@ config:
|
||||
source: |-
|
||||
.metadata.project = del(.project)
|
||||
.metadata.external_id = .metadata.project
|
||||
parsed, err = parse_regex(.event_message, r'^(?P<time>\d+:\d+:\d+\.\d+) \[(?P<level>\w+)\\] (?P<msg>.*)$')
|
||||
parsed, err = parse_regex(.event_message, r'^(?P<time>\d+:\d+:\d+\.\d+) \[(?P<level>\w+)\] (?P<msg>.*)$')
|
||||
if err == null {
|
||||
.event_message = parsed.msg
|
||||
.metadata.level = parsed.level
|
||||
@@ -892,3 +893,4 @@ config:
|
||||
uri: 'http://analytics:4000/api/logs?source_name=cloudflare.logs.prod&api_key=${LOGFLARE_API_KEY?LOGFLARE_API_KEY is required}'
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user