Skip to content
Snippets Groups Projects
Verified Commit b94929b5 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

promtail: Scrap pacman.log

parent 2e813484
No related branches found
No related tags found
No related merge requests found
Pipeline #8091 passed
......@@ -42,3 +42,20 @@ scrape_configs:
- timestamp:
format: 02/Jan/2006:15:04:05 -0700
source: time_local
- job_name: pacman
static_configs:
- targets:
- localhost
labels:
job: pacman
instance: {{ ansible_fqdn }}
__path__: /var/log/pacman.log
pipeline_stages:
- match:
selector: '{job="pacman"}'
stages:
- regex:
expression: '^\[(?P<timestamp>.*?)\]'
- timestamp:
format: 2006-01-02T15:04:05Z0700
source: timestamp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment