Hello
I am starting with Loki and grafana
I have to recover the logs of several old applications and I have a problem to make grafana recognize the timestamps in the log files
after searching for several solutions, even here, i came to this config file for promtail
scrape_configs:
- job_name: webservice
static_configs:
- targets:
- localhost
labels:
job: webservice-System
env : dev
__path__: C:\log\logname*
pipeline_stages:
- regex:
expression: '^(?P<time>\d{4}.{15}).+$'
- timestamp:
source: time
format: 2006-01-02 15:04:05,999
Here is an extract of my logs
They all start the same way
2023-04-22 11:57:24,396 [] SystemLogger DEBUG - Type Methode : POST | Name Methode : Authentification
I can’t get grafana to recognize 2023-04-22 11:57:24,396 as timestamp
and all my logs have a wrong timestamp in grafana, at the one of the ingestion
Could you help me please ?