I’m using Promtail to scrape logs from windows.
config:
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: C:\Temp\positions.yaml
clients:
- url: http://lokixx.com/loki/api/v1/push
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: winlogs
__path__: C:\XX\Logs\*Log*
But it will use CPU and our Credit based VMs to 100%.
Is there a way to make promtail to take only latest changed files like n-5 days