I want to use the date variable inside a yml file from is this possible?
job_name: BackupLogs
static_configs:
- targets:
- localhost
labels:
job: backuplogs
__path__: /var/backups/backupsql/logs/$(date +%m-%Y)/log-$(date +%d-%m-%Y).log
in order for promtail to get the log file relative to the current date