# Filebeat - GCP Module - No paths were defined for input accessing config

**URL:** <https://discuss.elastic.co/t/filebeat-gcp-module-no-paths-were-defined-for-input-accessing-config/271016>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [April 22, 2021, 8:40pm UTC](https://discuss.elastic.co/t/filebeat-gcp-module-no-paths-were-defined-for-input-accessing-config/271016 "2021-04-22T20:40:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cappy](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cappy](https://discuss.elastic.co/u/cappy)\
**Post date:** [April 22, 2021, 8:40pm UTC](https://discuss.elastic.co/t/filebeat-gcp-module-no-paths-were-defined-for-input-accessing-config/271016/1 "2021-04-22T20:40:16Z")

</div>

I'm trying to use the GCP module for Filebeat 7.11.2, but when using the following config:

```auto
filebeat.modules:
- module: gcp
  audit:
    enabled: true
    var.project_id: project1234
    var.topic: topic1234
    var.subscription_name: topic1234-sub
    var.credentials_file: /usr/share/filebeat/creds.json
    var.keep_original_message: false

```

...even when explicitly setting `path.config` in filebeat.yml, I still get an error like the following during startup:

`Exiting: Failed to start crawler: starting input failed: Error while initializing input: No paths were defined for input accessing config`.

I've checked permissions, ensuring the correct location of the creds file, and ensuring the module is enabled. Any thoughts?

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [April 29, 2021, 12:29am UTC](https://discuss.elastic.co/t/filebeat-gcp-module-no-paths-were-defined-for-input-accessing-config/271016/3 "2021-04-29T00:29:48Z")

</div>

Where are u setting `path.config`?? Are you setting a log file input somewhere? There was an issue with the gcp.vpcflow in 7.11 where the input defaulted to the log input, [[Filebeat] Fix gcp/vpcflow module defaulting to file input by andrewkroh · Pull Request #24719 · elastic/beats · GitHub](https://github.com/elastic/beats/pull/24719). Can u post your filebeat config as well?

---

<div class="post-metadata">

**Author:** ![cappy](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@cappy](https://discuss.elastic.co/u/cappy)\
**Post date:** [April 30, 2021, 2:13pm UTC](https://discuss.elastic.co/t/filebeat-gcp-module-no-paths-were-defined-for-input-accessing-config/271016/4 "2021-04-30T14:13:56Z")

</div>

Thanks! Yeah, I saw that -- that (fixed issue/version update) seems to fix that particular issue 👍

Now, I am getting the following using `var.credentials_file: /usr/share/filebeat/creds.json`:

```auto
Exiting: Failed to start crawler: starting input failed: Error while initializing input: no authentication credentials were configured or detected (credentials_file, credentials_json, and application default credentials (ADC)) accessing config

```

...even though I've checked the path (and permissions) for the credentials file, and it is correct. I've tried modifying path.config, etc as well, with no luck. I'll post another discussion topic, since my original issue is resolved.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 28, 2021, 4:14pm UTC](https://discuss.elastic.co/t/filebeat-gcp-module-no-paths-were-defined-for-input-accessing-config/271016/5 "2021-05-28T16:14:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
