Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
chore: Update promtail config to use new log format (#134)
Browse files Browse the repository at this point in the history
Update promtail config to use new log format
  • Loading branch information
nahsi committed May 9, 2023
1 parent 698d4e5 commit a2e3548
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions deploy/docker-compose/configs/promtail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ scrape_configs:
values: ["scrape=true"]
pipeline_stages:
- multiline:
firstline: '^[(?P<time>\S+)\s+\S+\s+\S+]'
firstline: '^(?P<time>\S+)\s+(?P<level>\S+)\s+\S+'
- regex:
expression: '^[(?P<time>\S+)\s+\S+\s+\S+].*'
expression: '^(?P<time>\S+)\s+(?P<level>\S+)\s+\S+.*'
- timestamp:
source: time
format: "RFC3339Nano"
- drop:
expression: "tide::log::middleware"
drop_counter_reason: "spam"
relabel_configs:
- source_labels: ["__meta_docker_container_label_name"]
target_label: "instance"
Expand Down

0 comments on commit a2e3548

Please sign in to comment.