I have a ansible log file /opt/ansible-logs/Client-Project-Pipeline-ansible.log
have to create labels for values of Client, Project, pipeline from the name of log.
Can it be done using regex expression from grafana agent scarper config.
- job_name: ansible-logs pipeline_stages: - regex: expression: - labels: client: project: static_configs: - targets: [localhost] labels: job: ansible-logs __path__: /opt/ansible-logs/*ansible.log