Skip to content

Commit

Permalink
Adding messages log to be parsed from sosreport.
Browse files Browse the repository at this point in the history
Adding the feature to parser the messages log to have it serialized by timestamp, helping to track messages log events with other log events.
  • Loading branch information
rbertol authored Jul 18, 2024
1 parent 710f4af commit f54e84f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions loki/promtail-config.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,18 @@ scrape_configs:
labels:
job: supervisor-uwsgi-logs
__path__: /logs/var/log/supervisor/awx-uwsgi.log*

- job_name: messages
pipeline_stages:
- regex:
expression: '^(?P<time>\w+\s+\d+\s+\d{2}:\d{2}:\d{2})'
- timestamp:
format: Jan 2 15:04:05
source: time
location: $timezone
static_configs:
- targets:
- localhost
labels:
job: messages-logs
__path__: /logs/var/log/messages*

0 comments on commit f54e84f

Please sign in to comment.