Grafana-agent can't access the logs on windows

Hi,
i have installed Grafana-Agent-V0.42.0 on Windows 10 Pro for Workstation. I did the configuration but grafana isn’t able to read the log files on windows. attaching the event log from windows machine Last part of config look likes this. I have given the paths to the files but it didn’t help either.

- job_name: integrations/node_exporter_direct_scrape
      static_configs:
      - targets:
        - localhost
        labels:
          instance: 'xxxx'
          __path__: C:\WINDOWS\system32\config\*
          job: integrations/node_exporter

Has any have encountered the similar issue?

Thanks for your comment. It hasn’t helped much but now atleast i see in window’s event logs that Grafana agent is trying to read all the files under /config directory but giving the similar error e.g

level=error component=logs logs_config=integrations msg="failed to start tailer" error="The process cannot access the file because it is being used by another process." filename=C:\WINDOWS\system32\config\BBI.LOG2

It is reading properly now right? the other issue you now have is something different.

something has locked the file. open up another post.