Setting up log collection

Looking for some guidance on collecting file logs. Installed the Grafana agent on my Ubuntu server, and set up this scrape_config in /etc/grafana-agent.yaml but not seeing anything under Explore in Grafana Cloud. Any suggestions?

logs:
  configs:
  - clients:
    - basic_auth:
        password: **
        username: **
      url: https://logs-prod-006.grafana.net/loki/api/v1/push
    name: integrations
    positions:
      filename: /tmp/positions.yaml
    scrape_configs:
      - job_name: applogs
        static_configs:
          - targets: [localhost]
            labels:
              job: applogs
              __path__: /home/appprimary/webapps/logs/2023/*log

Hi @norbertkrupa !

Are there any logs in /var/log/syslog that might give more insight? For example, the agent may not have sufficient permissions to view that directory.

Here are the main docs for configuring scrape jobs: